Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.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.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") [: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.002325/0.002325, allocations: 182.3 kB / 8.192 MB, free: 2.098 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.901/1.901, 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.001276/0.001276, allocations: 92.09 kB / 261.8 MB, free: 13.62 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.09414/0.09414, allocations: 12.58 MB / 322.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.146e-06/8.325e-06, allocations: 0 / 378.4 MB, free: 76.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08621/0.08624, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2884/0.3747, allocations: 76.92 MB / 0.4938 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.375, allocations: 73.84 kB / 0.4939 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003278/0.3783, allocations: 0.7458 MB / 0.4946 GB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3784, allocations: 7.938 kB / 0.4946 GB, free: 11.54 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002765/0.3787, allocations: 336.8 kB / 0.4949 GB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3787, allocations: 7.844 kB / 0.4949 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.3788, allocations: 11.75 kB / 0.495 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.3789, allocations: 191.1 kB / 0.4951 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.379, allocations: 0 / 0.4951 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.379, allocations: 7.75 kB / 0.4952 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.033e-05/0.3791, allocations: 11.58 kB / 0.4952 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.3793, allocations: 102.6 kB / 0.4953 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3793, allocations: 0 / 0.4953 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.3794, allocations: 4.484 kB / 0.4953 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3794, allocations: 0 / 0.4953 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002761/0.3796, allocations: 237.5 kB / 0.4955 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.3798, allocations: 134.4 kB / 0.4956 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.598e-05/0.3798, allocations: 22 kB / 0.4956 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.3799, allocations: 3.125 kB / 0.4956 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.3799, allocations: 35.55 kB / 0.4957 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.274e-06/0.3799, allocations: 3.984 kB / 0.4957 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001741/0.3801, allocations: 54.97 kB / 0.4957 GB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.3801, allocations: 80.67 kB / 0.4958 GB, free: 10.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.3803, allocations: 119.3 kB / 0.4959 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.397e-06/0.3803, allocations: 25.7 kB / 0.4959 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.3803, allocations: 154.4 kB / 0.4961 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.448e-06/0.3803, allocations: 7.094 kB / 0.4961 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.3804, allocations: 0 / 0.4961 GB, free: 10.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.263e-05/0.3804, allocations: 312.2 kB / 0.4964 GB, free: 9.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.535e-05/0.3804, allocations: 7.938 kB / 0.4964 GB, free: 9.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.509e-05/0.3805, allocations: 27.92 kB / 0.4964 GB, free: 9.688 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.292e-05/0.3805, allocations: 7 kB / 0.4964 GB, free: 9.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3805, allocations: 1.219 kB / 0.4964 GB, free: 9.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.857e-05/0.3806, allocations: 47.42 kB / 0.4965 GB, free: 9.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.3806, allocations: 7.688 kB / 0.4965 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3807, allocations: 4 kB / 0.4965 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3807, allocations: 0 / 0.4965 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-05/0.3807, allocations: 8.953 kB / 0.4965 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.3807, allocations: 0 / 0.4965 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.762e-05/0.3808, allocations: 8.625 kB / 0.4965 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.3808, allocations: 3.906 kB / 0.4965 GB, free: 9.637 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.315e-05/0.3808, allocations: 35.16 kB / 0.4966 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.3809, allocations: 47.62 kB / 0.4966 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.381, allocations: 9.047 kB / 0.4966 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.381, allocations: 3.812 kB / 0.4966 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.381, allocations: 0 / 0.4966 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.381, allocations: 0 / 0.4966 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.3812, allocations: 143.3 kB / 0.4967 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3812, allocations: 3.938 kB / 0.4967 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.029e-05/0.3812, allocations: 1.453 kB / 0.4968 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3812, allocations: 3.906 kB / 0.4968 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3812, allocations: 3.906 kB / 0.4968 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3812, allocations: 4 kB / 0.4968 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3812, allocations: 3.984 kB / 0.4968 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001085/0.3814, allocations: 162.5 kB / 0.4969 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.449e-05/0.3814, allocations: 92.09 kB / 0.497 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.3815, allocations: 3.844 kB / 0.497 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-05/0.3816, allocations: 5.359 kB / 0.497 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.954e-05/0.3816, allocations: 3.969 kB / 0.497 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.3816, allocations: 0 / 0.497 GB, free: 9.129 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.601e-05/0.3817, allocations: 96.3 kB / 0.4971 GB, free: 9.055 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.382, allocations: 3.875 kB / 0.4971 GB, free: 9.055 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 8.649e-05/0.382, allocations: 103.3 kB / 0.4972 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.711e-05/0.3821, allocations: 16.47 kB / 0.4972 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3822, allocations: 256 / 0.4972 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.565e-05/0.3822, allocations: 15.84 kB / 0.4972 GB, free: 8.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.3825, allocations: 19.67 kB / 0.4973 GB, free: 8.945 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002533/0.3828, allocations: 113.7 kB / 0.4974 GB, free: 8.832 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.383, allocations: 0.7035 MB / 0.4981 GB, free: 8.129 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.383, allocations: 0 / 0.4981 GB, free: 8.129 MB / 330.7 MB Notification: Performance of Templates: time 0.002296/0.3853, allocations: 0.675 MB / 0.4987 GB, free: 8.086 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches