Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") [: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.002057/0.002058, allocations: 186.1 kB / 7.842 MB, free: 2.516 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.338/1.338, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009267/0.0009266, allocations: 92.52 kB / 261.5 MB, free: 13.55 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.07393/0.07393, allocations: 12.59 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.863e-06/6.893e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08783, allocations: 50.38 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.3498, allocations: 81.01 MB / 0.4978 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/0.3501, allocations: 80.84 kB / 0.4979 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01425/0.3644, allocations: 5.379 MB / 0.5032 GB, free: 10.97 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.3644, allocations: 0 / 0.5032 GB, free: 10.97 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005127/0.365, allocations: 481.5 kB / 0.5036 GB, free: 10.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.365, allocations: 7.531 kB / 0.5036 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.227e-05/0.3651, allocations: 30.86 kB / 0.5037 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.3654, allocations: 257.7 kB / 0.5039 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.3655, allocations: 3.906 kB / 0.5039 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.3655, allocations: 3.812 kB / 0.5039 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/0.3656, allocations: 35.34 kB / 0.5039 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.3658, allocations: 137.9 kB / 0.5041 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3658, allocations: 0.6562 kB / 0.5041 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.3659, allocations: 3.719 kB / 0.5041 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.3659, allocations: 0 / 0.5041 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004009/0.3663, allocations: 348 kB / 0.5044 GB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.3664, allocations: 99.38 kB / 0.5045 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.867e-05/0.3665, allocations: 44.56 kB / 0.5045 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.3665, allocations: 0 / 0.5045 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.247e-05/0.3666, allocations: 71.56 kB / 0.5046 GB, free: 9.695 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.124e-06/0.3666, allocations: 0 / 0.5046 GB, free: 9.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001963/0.3668, allocations: 99.61 kB / 0.5047 GB, free: 9.641 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3668, allocations: 144.3 kB / 0.5048 GB, free: 9.473 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.367, allocations: 227.9 kB / 0.5051 GB, free: 9.359 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.367, allocations: 25.7 kB / 0.5051 GB, free: 9.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.952e-05/0.3671, allocations: 107.6 kB / 0.5052 GB, free: 9.234 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.3671, allocations: 7.625 kB / 0.5052 GB, free: 9.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.3671, allocations: 0 / 0.5052 GB, free: 9.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.885e-05/0.3672, allocations: 330 kB / 0.5055 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.407e-05/0.3672, allocations: 23.14 kB / 0.5055 GB, free: 8.906 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.742e-05/0.3673, allocations: 64.42 kB / 0.5056 GB, free: 8.848 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.143e-05/0.3673, allocations: 26.83 kB / 0.5056 GB, free: 8.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3673, allocations: 0 / 0.5056 GB, free: 8.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001433/0.3675, allocations: 111 kB / 0.5057 GB, free: 8.781 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.3675, allocations: 3.812 kB / 0.5057 GB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3675, allocations: 7.875 kB / 0.5057 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.3675, allocations: 0 / 0.5057 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.681e-05/0.3676, allocations: 11.59 kB / 0.5058 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.3676, allocations: 0 / 0.5058 GB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.206e-05/0.3677, allocations: 11.58 kB / 0.5058 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.3677, allocations: 3.844 kB / 0.5058 GB, free: 8.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 5.598e-05/0.3678, allocations: 125.3 kB / 0.5059 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.3679, allocations: 56.78 kB / 0.5059 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001509/0.368, allocations: 97.17 kB / 0.506 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.368, allocations: 0 / 0.506 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.368, allocations: 3.844 kB / 0.506 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.368, allocations: 0 / 0.506 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.3682, allocations: 202.9 kB / 0.5062 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3682, allocations: 0 / 0.5062 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.82e-05/0.3682, allocations: 19.08 kB / 0.5062 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3682, allocations: 3.906 kB / 0.5063 GB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.3683, allocations: 3.844 kB / 0.5063 GB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3683, allocations: 0 / 0.5063 GB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3683, allocations: 3.938 kB / 0.5063 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001437/0.3684, allocations: 165.5 kB / 0.5064 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.237e-05/0.3685, allocations: 111.5 kB / 0.5065 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.3685, allocations: 15.66 kB / 0.5065 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.3686, allocations: 3.844 kB / 0.5065 GB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.3687, allocations: 7.672 kB / 0.5065 GB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.3687, allocations: 3.844 kB / 0.5066 GB, free: 8.098 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001262/0.3688, allocations: 185 kB / 0.5067 GB, free: 8.004 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002464/0.3691, allocations: 30.91 kB / 0.5068 GB, free: 7.996 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000568/0.3696, allocations: 326.5 kB / 0.5071 GB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.3698, allocations: 64.42 kB / 0.5071 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3698, allocations: 0 / 0.5071 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.532e-05/0.3698, allocations: 26.88 kB / 0.5072 GB, free: 7.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.3702, allocations: 47.44 kB / 0.5072 GB, free: 7.719 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003962/0.3706, allocations: 231.3 kB / 0.5074 GB, free: 7.582 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.3708, allocations: 0.7605 MB / 0.5082 GB, free: 6.844 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3708, allocations: 0 / 0.5082 GB, free: 6.844 MB / 330.7 MB Notification: Performance of Templates: time 0.005317/0.3761, allocations: 2.25 MB / 0.5104 GB, free: 5.707 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches