Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.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.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep") [: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.00252/0.00252, allocations: 175 kB / 8.192 MB, free: 2.191 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.681/1.681, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001247/0.001247, allocations: 93.06 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.09427/0.09427, allocations: 12.6 MB / 322.4 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.528e-06/9.698e-06, allocations: 0 / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0819/0.08194, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2743/0.3563, allocations: 76.49 MB / 0.4934 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.3566, allocations: 72.72 kB / 0.4935 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002247/0.3589, allocations: 439.7 kB / 0.4939 GB, free: 11.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3589, allocations: 0 / 0.4939 GB, free: 11.75 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002819/0.3592, allocations: 332.3 kB / 0.4942 GB, free: 11.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3593, allocations: 11.66 kB / 0.4942 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.3593, allocations: 3.812 kB / 0.4942 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.3595, allocations: 172.5 kB / 0.4944 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.3595, allocations: 3.438 kB / 0.4944 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.3595, allocations: 3.594 kB / 0.4944 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.39e-05/0.3596, allocations: 14.92 kB / 0.4944 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.3598, allocations: 89.67 kB / 0.4945 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3598, allocations: 7.984 kB / 0.4945 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.3599, allocations: 0.5625 kB / 0.4945 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3599, allocations: 3.906 kB / 0.4945 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.36, allocations: 135.3 kB / 0.4946 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.443e-05/0.3601, allocations: 34.48 kB / 0.4947 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.502e-05/0.3601, allocations: 16.92 kB / 0.4947 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.3602, allocations: 3.844 kB / 0.4947 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.3602, allocations: 38.5 kB / 0.4947 GB, free: 10.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.653e-06/0.3602, allocations: 0 / 0.4947 GB, free: 10.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.00015/0.3604, allocations: 51.5 kB / 0.4948 GB, free: 10.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.3604, allocations: 51.41 kB / 0.4948 GB, free: 10.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.246e-05/0.3605, allocations: 100.2 kB / 0.4949 GB, free: 10.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.3605, allocations: 25.7 kB / 0.4949 GB, free: 10.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.344e-05/0.3605, allocations: 150.6 kB / 0.4951 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.3606, allocations: 2.578 kB / 0.4951 GB, free: 10.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.3606, allocations: 4 kB / 0.4951 GB, free: 10.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.3606, allocations: 315.4 kB / 0.4954 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/0.3607, allocations: 3.844 kB / 0.4954 GB, free: 10.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.717e-05/0.3607, allocations: 26.62 kB / 0.4954 GB, free: 10.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.614e-05/0.3607, allocations: 12.58 kB / 0.4954 GB, free: 10.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3607, allocations: 3.938 kB / 0.4954 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.176e-05/0.3608, allocations: 54.78 kB / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.3609, allocations: 9.688 kB / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.3609, allocations: 0 / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.3609, allocations: 0 / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.413e-05/0.361, allocations: 11.62 kB / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.361, allocations: 3.844 kB / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.53e-05/0.361, allocations: 0 / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.361, allocations: 8 kB / 0.4955 GB, free: 10.13 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: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.228e-05/0.3611, allocations: 27.16 kB / 0.4955 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.252e-05/0.3612, allocations: 50.16 kB / 0.4956 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.3612, allocations: 7.984 kB / 0.4956 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3612, allocations: 4.781 kB / 0.4956 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3612, allocations: 0 / 0.4956 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3612, allocations: 0 / 0.4956 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.069e-05/0.3613, allocations: 135.3 kB / 0.4957 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3613, allocations: 3.938 kB / 0.4957 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.886e-05/0.3614, allocations: 12.44 kB / 0.4957 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3614, allocations: 0 / 0.4957 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.3614, allocations: 0.7969 kB / 0.4957 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3614, allocations: 0 / 0.4957 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3614, allocations: 0 / 0.4957 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.947e-05/0.3616, allocations: 73.98 kB / 0.4958 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.366e-05/0.3616, allocations: 77.91 kB / 0.4959 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.3616, allocations: 1.219 kB / 0.4959 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.349e-05/0.3617, allocations: 12.36 kB / 0.4959 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-06/0.3617, allocations: 4.688 kB / 0.4959 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.3617, allocations: 4 kB / 0.4959 GB, free: 9.715 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.705e-05/0.3617, allocations: 86.97 kB / 0.496 GB, free: 9.637 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002162/0.362, allocations: 4.516 kB / 0.496 GB, free: 9.637 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * 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.876e-05/0.3621, allocations: 99.36 kB / 0.4961 GB, free: 9.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.792e-05/0.3622, allocations: 16.06 kB / 0.4961 GB, free: 9.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3622, allocations: 4.062 kB / 0.4961 GB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.52e-07/0.3622, allocations: 0 / 0.4961 GB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.3624, allocations: 19.12 kB / 0.4961 GB, free: 9.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001899/0.3626, allocations: 88.77 kB / 0.4962 GB, free: 9.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.3628, allocations: 0.6993 MB / 0.4969 GB, free: 8.738 MB / 330.7 MB Notification: Performance of SimCode: time 6.42e-07/0.3628, allocations: 0 / 0.4969 GB, free: 8.738 MB / 330.7 MB Notification: Performance of Templates: time 0.002101/0.3649, allocations: 0.5943 MB / 0.4975 GB, free: 8.707 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches