Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.001653/0.001652, allocations: 169.6 kB / 8.185 MB, free: 2.133 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.688/1.688, 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.001272/0.001272, allocations: 97.98 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.09632/0.09632, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.275e-05/1.285e-05, allocations: 4 kB / 378.4 MB, free: 76.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08848, allocations: 50.36 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.369, allocations: 76.5 MB / 0.4934 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.3693, allocations: 78.25 kB / 0.4935 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002489/0.3718, allocations: 462.2 kB / 0.4939 GB, free: 11.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.3718, allocations: 4.406 kB / 0.4939 GB, free: 11.73 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.0003159/0.3722, allocations: 339.7 kB / 0.4942 GB, free: 11.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3722, allocations: 11.56 kB / 0.4943 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.3723, allocations: 0 / 0.4943 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.3725, allocations: 176.7 kB / 0.4944 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.3725, allocations: 3.844 kB / 0.4944 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.3725, allocations: 0 / 0.4944 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.952e-05/0.3726, allocations: 14.81 kB / 0.4944 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.3728, allocations: 93.95 kB / 0.4945 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3728, allocations: 0 / 0.4945 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3728, allocations: 3.906 kB / 0.4945 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3729, allocations: 1.547 kB / 0.4945 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001041/0.373, allocations: 137.5 kB / 0.4947 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.3731, allocations: 43.81 kB / 0.4947 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.637e-05/0.3731, allocations: 16.05 kB / 0.4947 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.3732, allocations: 0 / 0.4947 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.3732, allocations: 37.56 kB / 0.4948 GB, free: 10.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.3732, allocations: 0 / 0.4948 GB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001557/0.3734, allocations: 47.55 kB / 0.4948 GB, free: 10.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.3734, allocations: 60.53 kB / 0.4949 GB, free: 10.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.251e-05/0.3735, allocations: 97 kB / 0.495 GB, free: 10.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.3735, allocations: 29.7 kB / 0.495 GB, free: 10.65 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.609e-05/0.3735, allocations: 154 kB / 0.4951 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.261e-05/0.3736, allocations: 3.969 kB / 0.4951 GB, free: 10.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.3736, allocations: 0 / 0.4951 GB, free: 10.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.422e-05/0.3736, allocations: 316 kB / 0.4954 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.3737, allocations: 7.062 kB / 0.4954 GB, free: 10.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.764e-05/0.3737, allocations: 28.27 kB / 0.4955 GB, free: 10.15 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.501e-05/0.3737, allocations: 13.02 kB / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3738, allocations: 0 / 0.4955 GB, free: 10.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.173e-05/0.3739, allocations: 50.86 kB / 0.4955 GB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.3739, allocations: 6.094 kB / 0.4955 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3739, allocations: 3.812 kB / 0.4955 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3739, allocations: 128 / 0.4955 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.631e-05/0.374, allocations: 13.25 kB / 0.4956 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.374, allocations: 0 / 0.4956 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.817e-05/0.3741, allocations: 9.125 kB / 0.4956 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.3741, allocations: 0 / 0.4956 GB, free: 10.1 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.569e-05/0.3741, allocations: 32.86 kB / 0.4956 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.17e-05/0.3742, allocations: 47.72 kB / 0.4956 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/0.3742, allocations: 9.078 kB / 0.4956 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3743, allocations: 0 / 0.4956 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3743, allocations: 0 / 0.4956 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3743, allocations: 4.094 kB / 0.4957 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.323e-05/0.3744, allocations: 138.9 kB / 0.4958 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3744, allocations: 5.391 kB / 0.4958 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.3745, allocations: 12.89 kB / 0.4958 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3745, allocations: 0 / 0.4958 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.3745, allocations: 1.922 kB / 0.4958 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3745, allocations: 3.906 kB / 0.4958 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3745, allocations: 3.938 kB / 0.4958 GB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.825e-05/0.3746, allocations: 79.94 kB / 0.4959 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.557e-05/0.3747, allocations: 81.02 kB / 0.496 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.3747, allocations: 0 / 0.496 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.08e-05/0.3748, allocations: 10.22 kB / 0.496 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-06/0.3748, allocations: 0 / 0.496 GB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.3748, allocations: 3.969 kB / 0.496 GB, free: 9.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.067e-05/0.3749, allocations: 83.39 kB / 0.4961 GB, free: 9.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.3751, allocations: 3.812 kB / 0.4961 GB, free: 9.605 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 9.038e-05/0.3752, allocations: 99.95 kB / 0.4962 GB, free: 9.512 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.966e-05/0.3753, allocations: 18.41 kB / 0.4962 GB, free: 9.512 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.3753, allocations: 3.969 kB / 0.4962 GB, free: 9.512 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.22e-07/0.3753, allocations: 0 / 0.4962 GB, free: 9.512 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.3756, allocations: 20.95 kB / 0.4962 GB, free: 9.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002038/0.3758, allocations: 92.58 kB / 0.4963 GB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.3759, allocations: 0.6972 MB / 0.497 GB, free: 8.699 MB / 330.7 MB Notification: Performance of SimCode: time 6.52e-07/0.376, allocations: 0 / 0.497 GB, free: 8.699 MB / 330.7 MB Notification: Performance of Templates: time 0.002227/0.3782, allocations: 0.6141 MB / 0.4976 GB, free: 8.676 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches