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.001059/0.001059, allocations: 171.9 kB / 16.8 MB, free: 5.027 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.574/1.574, allocations: 205.4 MB / 222.9 MB, free: 8.949 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.000871/0.000871, allocations: 96.73 kB / 271.3 MB, free: 8.234 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.076/0.076, allocations: 12.58 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004356/0.0004356, allocations: 12 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08632/0.08678, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3154/0.4022, allocations: 81.98 MB / 0.5133 GB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.4025, allocations: 85.92 kB / 0.5134 GB, free: 12.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01424/0.4168, allocations: 5.882 MB / 0.5191 GB, free: 8.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4168, allocations: 0 / 0.5191 GB, free: 8.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.4169, allocations: 8 kB / 0.5191 GB, free: 8.922 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.0006583/0.4175, allocations: 0.5013 MB / 0.5196 GB, free: 8.379 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.4176, allocations: 8.031 kB / 0.5196 GB, free: 8.371 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.094e-05/0.4177, allocations: 20.66 kB / 0.5196 GB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.418, allocations: 276.4 kB / 0.5199 GB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.4181, allocations: 8.375 kB / 0.5199 GB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.4181, allocations: 8.312 kB / 0.5199 GB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.4184, allocations: 174 kB / 0.5201 GB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.4185, allocations: 192 / 0.5201 GB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.4185, allocations: 11.69 kB / 0.5201 GB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.4185, allocations: 0 / 0.5201 GB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.4186, allocations: 42.55 kB / 0.5201 GB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005225/0.4191, allocations: 453.3 kB / 0.5205 GB, free: 7.395 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.4194, allocations: 139.1 kB / 0.5207 GB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.987e-05/0.4194, allocations: 57.92 kB / 0.5207 GB, free: 7.184 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.4195, allocations: 11.97 kB / 0.5207 GB, free: 7.172 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001439/0.4196, allocations: 98.55 kB / 0.5208 GB, free: 7.074 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.452e-06/0.4196, allocations: 0 / 0.5208 GB, free: 7.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003402/0.42, allocations: 166.8 kB / 0.521 GB, free: 6.938 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.42, allocations: 158.2 kB / 0.5212 GB, free: 6.746 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.4203, allocations: 269.5 kB / 0.5214 GB, free: 6.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.4203, allocations: 28.77 kB / 0.5214 GB, free: 6.488 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.4204, allocations: 116.1 kB / 0.5215 GB, free: 6.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.4204, allocations: 14.94 kB / 0.5216 GB, free: 6.379 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-06/0.4204, allocations: 288 / 0.5216 GB, free: 6.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.942e-05/0.4205, allocations: 346 kB / 0.5219 GB, free: 6.039 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.799e-05/0.4205, allocations: 23.8 kB / 0.5219 GB, free: 6.023 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.201e-05/0.4206, allocations: 80.05 kB / 0.522 GB, free: 5.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.4208, allocations: 92.98 kB / 0.5221 GB, free: 5.848 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4208, allocations: 0 / 0.5221 GB, free: 5.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002111/0.421, allocations: 128.8 kB / 0.5222 GB, free: 5.738 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.421, allocations: 12.16 kB / 0.5222 GB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.421, allocations: 0 / 0.5222 GB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.4211, allocations: 4 kB / 0.5222 GB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.232e-05/0.4211, allocations: 8 kB / 0.5222 GB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.4212, allocations: 7.938 kB / 0.5222 GB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.934e-05/0.4213, allocations: 15.8 kB / 0.5222 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.4213, allocations: 4 kB / 0.5223 GB, free: 5.691 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 () * Number of clocked 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 0.0001463/0.4214, allocations: 149.5 kB / 0.5224 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.325e-05/0.4215, allocations: 75.66 kB / 0.5225 GB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002227/0.4217, allocations: 116.6 kB / 0.5226 GB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4218, allocations: 0 / 0.5226 GB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.4218, allocations: 8 kB / 0.5226 GB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4218, allocations: 0 / 0.5226 GB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.422, allocations: 234.1 kB / 0.5228 GB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.422, allocations: 3.984 kB / 0.5228 GB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.676e-05/0.422, allocations: 11.94 kB / 0.5228 GB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4221, allocations: 0 / 0.5228 GB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.4221, allocations: 8.062 kB / 0.5228 GB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.4221, allocations: 0 / 0.5228 GB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4221, allocations: 4 kB / 0.5228 GB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.4223, allocations: 186.2 kB / 0.523 GB, free: 4.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.4225, allocations: 115.1 kB / 0.5231 GB, free: 4.789 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.4225, allocations: 3.938 kB / 0.5231 GB, free: 4.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.428e-05/0.4226, allocations: 7.984 kB / 0.5231 GB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.68e-05/0.4226, allocations: 7.875 kB / 0.5231 GB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.4226, allocations: 11.92 kB / 0.5232 GB, free: 4.766 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001694/0.4228, allocations: 194.7 kB / 0.5233 GB, free: 4.605 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4228, allocations: 0 / 0.5233 GB, free: 4.605 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003097/0.4231, allocations: 39.88 kB / 0.5234 GB, free: 4.57 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) * Number of clocked states: 0 () * 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.001012/0.4242, allocations: 434.2 kB / 0.5238 GB, free: 4.148 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002811/0.4245, allocations: 91.33 kB / 0.5239 GB, free: 4.078 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4245, allocations: 0 / 0.5239 GB, free: 4.078 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.983e-05/0.4246, allocations: 31.55 kB / 0.5239 GB, free: 4.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004499/0.425, allocations: 66.44 kB / 0.524 GB, free: 4.004 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006053/0.4256, allocations: 368.9 kB / 0.5243 GB, free: 3.641 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.4258, allocations: 0.7321 MB / 0.525 GB, free: 2.887 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.428e-05/0.4259, allocations: 37.61 kB / 0.5251 GB, free: 2.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.426, allocations: 23.31 kB / 0.5251 GB, free: 2.832 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.426, allocations: 0 / 0.5251 GB, free: 2.832 MB / 330.7 MB Notification: Performance of Templates: time 0.005199/0.4312, allocations: 2.461 MB / 0.5275 GB, free: 392 kB / 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/jenkins1/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