Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002556/0.002556, allocations: 186.3 kB / 8.198 MB, free: 2.176 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 91.47 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09724/0.09724, allocations: 12.59 MB / 322.4 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.044e-05/1.058e-05, allocations: 4 kB / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09452, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2995/0.394, allocations: 77.62 MB / 0.4945 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.3944, allocations: 78.02 kB / 0.4946 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00602/0.4004, allocations: 1.292 MB / 0.4958 GB, free: 11.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.4005, allocations: 0 / 0.4958 GB, free: 11.48 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004878/0.401, allocations: 377.2 kB / 0.4962 GB, free: 11.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.4011, allocations: 11.59 kB / 0.4962 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.688e-05/0.4012, allocations: 14.53 kB / 0.4962 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.4014, allocations: 200.4 kB / 0.4964 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.4015, allocations: 7.656 kB / 0.4964 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.4015, allocations: 3.812 kB / 0.4964 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000192/0.4017, allocations: 57.8 kB / 0.4965 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.4022, allocations: 182.9 kB / 0.4966 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.4022, allocations: 0 / 0.4966 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.4022, allocations: 8.641 kB / 0.4967 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.4022, allocations: 3.906 kB / 0.4967 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004932/0.4027, allocations: 366.9 kB / 0.497 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.4029, allocations: 110.4 kB / 0.4971 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.4031, allocations: 74.5 kB / 0.4972 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.4031, allocations: 5.484 kB / 0.4972 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.4032, allocations: 34.56 kB / 0.4972 GB, free: 10.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 2.595e-06/0.4032, allocations: 0 / 0.4972 GB, free: 10.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003396/0.4035, allocations: 110.1 kB / 0.4973 GB, free: 10.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.4036, allocations: 111.7 kB / 0.4974 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.4037, allocations: 147.6 kB / 0.4976 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.4038, allocations: 25.7 kB / 0.4976 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.4038, allocations: 154.7 kB / 0.4977 GB, free: 9.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.4038, allocations: 12.91 kB / 0.4978 GB, free: 9.855 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.4038, allocations: 0 / 0.4978 GB, free: 9.855 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.122e-05/0.4039, allocations: 316.2 kB / 0.4981 GB, free: 9.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.75e-05/0.404, allocations: 13.47 kB / 0.4981 GB, free: 9.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.733e-05/0.404, allocations: 78.97 kB / 0.4981 GB, free: 9.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.917e-05/0.4041, allocations: 23.38 kB / 0.4982 GB, free: 9.449 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4041, allocations: 0 / 0.4982 GB, free: 9.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000188/0.4043, allocations: 101.4 kB / 0.4983 GB, free: 9.398 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.4044, allocations: 7.656 kB / 0.4983 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4044, allocations: 3.938 kB / 0.4983 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.4044, allocations: 3.844 kB / 0.4983 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.4046, allocations: 22.81 kB / 0.4983 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.4046, allocations: 12.84 kB / 0.4983 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.508e-05/0.4047, allocations: 12.67 kB / 0.4983 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.4047, allocations: 4.625 kB / 0.4983 GB, free: 9.383 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold.u,hold.y,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.74e-05/0.4048, allocations: 39.8 kB / 0.4984 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/0.4051, allocations: 104.4 kB / 0.4985 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.169e-05/0.4052, allocations: 16.44 kB / 0.4985 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4052, allocations: 7.875 kB / 0.4985 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.4052, allocations: 1.5 kB / 0.4985 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.4053, allocations: 0 / 0.4985 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.4055, allocations: 172.6 kB / 0.4987 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4056, allocations: 0 / 0.4987 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.4058, allocations: 26.53 kB / 0.4987 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.4058, allocations: 3.938 kB / 0.4987 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.4058, allocations: 3.875 kB / 0.4987 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4058, allocations: 1.547 kB / 0.4987 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4058, allocations: 0 / 0.4987 GB, free: 9.129 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7187:5-7187:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004538/0.4063, allocations: 384.5 kB / 0.4991 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-05/0.4064, allocations: 104.6 kB / 0.4992 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.4064, allocations: 4.609 kB / 0.4992 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.4066, allocations: 5.328 kB / 0.4992 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.4067, allocations: 5 kB / 0.4992 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.4067, allocations: 0 / 0.4992 GB, free: 8.762 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.215e-05/0.4068, allocations: 118.9 kB / 0.4993 GB, free: 8.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003754/0.4072, allocations: 11.69 kB / 0.4993 GB, free: 8.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (hold.y,sample1.u,sample1.y,hold.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001035/0.4073, allocations: 105.2 kB / 0.4994 GB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001897/0.4075, allocations: 70.14 kB / 0.4995 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4075, allocations: 0 / 0.4995 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.281e-05/0.4076, allocations: 5.297 kB / 0.4995 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004765/0.408, allocations: 64.73 kB / 0.4995 GB, free: 8.566 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004718/0.4085, allocations: 195.5 kB / 0.4997 GB, free: 8.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.4088, allocations: 0.7308 MB / 0.5004 GB, free: 7.723 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4088, allocations: 0 / 0.5004 GB, free: 7.723 MB / 330.7 MB Notification: Performance of Templates: time 0.00335/0.4121, allocations: 1.157 MB / 0.5016 GB, free: 7.645 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches