Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 184.1 kB / 7.843 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.2 MB / 213.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009738/0.0009738, allocations: 93.34 kB / 261.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07041/0.07041, allocations: 12.59 MB / 322 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.701e-06/5.721e-06, allocations: 0 / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09347, allocations: 50.36 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2696/0.3631, allocations: 76.78 MB / 0.4937 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.3634, allocations: 76.7 kB / 0.4938 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.001961/0.3653, allocations: 0.6788 MB / 0.4944 GB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.3654, allocations: 8.312 kB / 0.4944 GB, free: 11.65 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002214/0.3656, allocations: 338.2 kB / 0.4948 GB, free: 11.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.3656, allocations: 11.72 kB / 0.4948 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.888e-05/0.3657, allocations: 7.781 kB / 0.4948 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.3658, allocations: 186.2 kB / 0.495 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.3658, allocations: 0 / 0.495 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.3658, allocations: 3.875 kB / 0.495 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.662e-05/0.3659, allocations: 16.5 kB / 0.495 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.366, allocations: 75.7 kB / 0.495 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.366, allocations: 4 kB / 0.4951 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.3661, allocations: 0 / 0.4951 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3661, allocations: 3.938 kB / 0.4951 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002099/0.3663, allocations: 235 kB / 0.4953 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.564e-05/0.3663, allocations: 37 kB / 0.4953 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.3664, allocations: 13.56 kB / 0.4953 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.3664, allocations: 0 / 0.4953 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.458e-05/0.3664, allocations: 47.11 kB / 0.4954 GB, free: 10.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.3664, allocations: 0 / 0.4954 GB, free: 10.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001157/0.3665, allocations: 34.8 kB / 0.4954 GB, free: 10.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.192e-05/0.3666, allocations: 81.17 kB / 0.4955 GB, free: 10.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.732e-05/0.3666, allocations: 131.3 kB / 0.4956 GB, free: 10.44 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-06/0.3666, allocations: 29.64 kB / 0.4956 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.953e-05/0.3667, allocations: 80.14 kB / 0.4957 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.861e-06/0.3667, allocations: 0 / 0.4957 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.3667, allocations: 0 / 0.4957 GB, free: 10.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.975e-05/0.3667, allocations: 319.9 kB / 0.496 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-06/0.3667, allocations: 0 / 0.496 GB, free: 10.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.107e-05/0.3668, allocations: 19.05 kB / 0.496 GB, free: 9.988 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.143e-05/0.3668, allocations: 3.562 kB / 0.496 GB, free: 9.988 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3668, allocations: 0 / 0.496 GB, free: 9.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.165e-05/0.3668, allocations: 43.77 kB / 0.4961 GB, free: 9.953 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.3668, allocations: 7.812 kB / 0.4961 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.3669, allocations: 0 / 0.4961 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.3669, allocations: 0 / 0.4961 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.385e-05/0.3669, allocations: 8 kB / 0.4961 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.3669, allocations: 0 / 0.4961 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.158e-05/0.3669, allocations: 7.859 kB / 0.4961 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.421e-06/0.3669, allocations: 0 / 0.4961 GB, free: 9.941 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 3.991e-05/0.367, allocations: 104.8 kB / 0.4962 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/0.367, allocations: 42.58 kB / 0.4962 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.3671, allocations: 8.672 kB / 0.4963 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3671, allocations: 3.906 kB / 0.4963 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3671, allocations: 7.875 kB / 0.4963 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3671, allocations: 5.484 kB / 0.4963 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.3672, allocations: 143.1 kB / 0.4964 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3672, allocations: 0 / 0.4964 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-06/0.3672, allocations: 0 / 0.4964 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3672, allocations: 0 / 0.4964 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.3672, allocations: 3.938 kB / 0.4964 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3672, allocations: 3.844 kB / 0.4964 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3673, allocations: 0 / 0.4964 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.787e-05/0.3673, allocations: 159.8 kB / 0.4966 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-05/0.3674, allocations: 88.47 kB / 0.4967 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.3674, allocations: 3.906 kB / 0.4967 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.113e-05/0.3675, allocations: 5.5 kB / 0.4967 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.3675, allocations: 0 / 0.4967 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.3675, allocations: 0.5 kB / 0.4967 GB, free: 9.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.619e-05/0.3675, allocations: 104.8 kB / 0.4968 GB, free: 9.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002138/0.3678, allocations: 3.875 kB / 0.4968 GB, free: 9.281 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: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 6.574e-05/0.3678, allocations: 95.78 kB / 0.4969 GB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.164e-05/0.3679, allocations: 11.41 kB / 0.4969 GB, free: 9.188 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3679, allocations: 3.875 kB / 0.4969 GB, free: 9.188 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.05e-05/0.3679, allocations: 1.125 kB / 0.4969 GB, free: 9.188 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.3681, allocations: 9.484 kB / 0.4969 GB, free: 9.188 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001745/0.3683, allocations: 93.69 kB / 0.497 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.3685, allocations: 0.6989 MB / 0.4977 GB, free: 8.391 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3685, allocations: 0 / 0.4977 GB, free: 8.391 MB / 330.7 MB Notification: Performance of Templates: time 0.002056/0.3705, allocations: 415.6 kB / 0.498 GB, free: 8.332 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches