Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001497/0.001497, allocations: 181.9 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.2 MB / 219 MB, free: 9.199 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.000877/0.0008772, allocations: 92.45 kB / 267.1 MB, free: 9.273 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.0746/0.0746, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.632e-05/2.635e-05, allocations: 4 kB / 386 MB, free: 69.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07856/0.0786, allocations: 50.37 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2984/0.377, allocations: 81.84 MB / 0.5061 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.3773, allocations: 83.48 kB / 0.5061 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01478/0.3921, allocations: 5.869 MB / 0.5119 GB, free: 9.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3922, allocations: 0 / 0.5119 GB, free: 9.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.3922, allocations: 3.844 kB / 0.5119 GB, free: 9.648 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004446/0.3927, allocations: 483.1 kB / 0.5123 GB, free: 9.184 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3927, allocations: 11.69 kB / 0.5124 GB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/0.3928, allocations: 19.41 kB / 0.5124 GB, free: 9.172 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.3932, allocations: 260.5 kB / 0.5126 GB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.3932, allocations: 7.844 kB / 0.5126 GB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.3932, allocations: 11.67 kB / 0.5126 GB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.3936, allocations: 155.8 kB / 0.5128 GB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3936, allocations: 4 kB / 0.5128 GB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.3936, allocations: 7.188 kB / 0.5128 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.3936, allocations: 3.844 kB / 0.5128 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.538e-05/0.3937, allocations: 30.56 kB / 0.5128 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004611/0.3942, allocations: 473.6 kB / 0.5133 GB, free: 8.395 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.3943, allocations: 126.2 kB / 0.5134 GB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.138e-05/0.3944, allocations: 61.2 kB / 0.5135 GB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3944, allocations: 3.844 kB / 0.5135 GB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.3945, allocations: 89.83 kB / 0.5135 GB, free: 8.176 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.3945, allocations: 3.938 kB / 0.5136 GB, free: 8.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.000235/0.3948, allocations: 124.1 kB / 0.5137 GB, free: 8.117 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.3948, allocations: 165.3 kB / 0.5138 GB, free: 7.926 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.395, allocations: 239.2 kB / 0.5141 GB, free: 7.812 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.3951, allocations: 32.86 kB / 0.5141 GB, free: 7.781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.3951, allocations: 115.5 kB / 0.5142 GB, free: 7.691 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.3952, allocations: 23.39 kB / 0.5142 GB, free: 7.676 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-06/0.3952, allocations: 4.094 kB / 0.5142 GB, free: 7.672 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.3952, allocations: 329.9 kB / 0.5145 GB, free: 7.352 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.965e-05/0.3953, allocations: 22.94 kB / 0.5146 GB, free: 7.348 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.966e-05/0.3953, allocations: 78.95 kB / 0.5146 GB, free: 7.281 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.903e-05/0.3954, allocations: 28.02 kB / 0.5147 GB, free: 7.273 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3954, allocations: 3.844 kB / 0.5147 GB, free: 7.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002373/0.3956, allocations: 126.7 kB / 0.5148 GB, free: 7.215 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3957, allocations: 3.844 kB / 0.5148 GB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3957, allocations: 160 / 0.5148 GB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.3957, allocations: 7.875 kB / 0.5148 GB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.683e-05/0.3958, allocations: 23.42 kB / 0.5148 GB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.3958, allocations: 0 / 0.5148 GB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.375e-05/0.3959, allocations: 11.59 kB / 0.5148 GB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.3959, allocations: 3.844 kB / 0.5148 GB, free: 7.199 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.485e-05/0.3959, allocations: 119.5 kB / 0.515 GB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-05/0.396, allocations: 67.78 kB / 0.515 GB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000163/0.3962, allocations: 124.2 kB / 0.5151 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3962, allocations: 0 / 0.5151 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3962, allocations: 3.844 kB / 0.5151 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3962, allocations: 0 / 0.5151 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.3964, allocations: 245 kB / 0.5154 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3964, allocations: 0 / 0.5154 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.044e-05/0.3964, allocations: 3.875 kB / 0.5154 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.3964, allocations: 3.875 kB / 0.5154 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3964, allocations: 0 / 0.5154 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.3965, allocations: 3.844 kB / 0.5154 GB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.3965, allocations: 4 kB / 0.5154 GB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001759/0.3966, allocations: 219 kB / 0.5156 GB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.671e-05/0.3967, allocations: 115.6 kB / 0.5157 GB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.3968, allocations: 7.281 kB / 0.5157 GB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.626e-05/0.3969, allocations: 11.77 kB / 0.5157 GB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.897e-05/0.3969, allocations: 7.922 kB / 0.5157 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.3969, allocations: 7.25 kB / 0.5157 GB, free: 6.461 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001364/0.3971, allocations: 191 kB / 0.5159 GB, free: 6.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3971, allocations: 0 / 0.5159 GB, free: 6.367 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002471/0.3973, allocations: 45.36 kB / 0.516 GB, free: 6.355 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0008065/0.3981, allocations: 386.2 kB / 0.5163 GB, free: 6.047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001565/0.3983, allocations: 78.5 kB / 0.5164 GB, free: 6.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3983, allocations: 7.375 kB / 0.5164 GB, free: 6.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.193e-05/0.3984, allocations: 34.17 kB / 0.5164 GB, free: 6.027 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.3987, allocations: 59.86 kB / 0.5165 GB, free: 6.012 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.3991, allocations: 248.7 kB / 0.5167 GB, free: 5.855 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.3993, allocations: 0.7416 MB / 0.5175 GB, free: 5.129 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.033e-05/0.3994, allocations: 24.64 kB / 0.5175 GB, free: 5.121 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.214e-05/0.3994, allocations: 19.06 kB / 0.5175 GB, free: 5.113 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3994, allocations: 0 / 0.5175 GB, free: 5.113 MB / 330.7 MB Notification: Performance of Templates: time 0.005144/0.4046, allocations: 2.433 MB / 0.5199 GB, free: 3.887 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches