Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001447/0.001447, allocations: 171.9 kB / 16.8 MB, free: 5.031 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.47/1.47, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007951/0.000795, allocations: 84.7 kB / 271.3 MB, free: 8.246 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.07076/0.07076, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004199/0.0004199, allocations: 16 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0818/0.08224, allocations: 50.37 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.3938, allocations: 81.99 MB / 0.5133 GB, free: 12.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3941, allocations: 83.33 kB / 0.5134 GB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0203/0.4144, allocations: 5.918 MB / 0.5191 GB, free: 8.902 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4145, allocations: 0 / 0.5191 GB, free: 8.902 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.4145, allocations: 11.83 kB / 0.5192 GB, free: 8.895 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.0006945/0.4152, allocations: 0.5103 MB / 0.5197 GB, free: 8.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.4152, allocations: 12.03 kB / 0.5197 GB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.078e-05/0.4153, allocations: 20.66 kB / 0.5197 GB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004652/0.4158, allocations: 278.3 kB / 0.5199 GB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.4158, allocations: 3.188 kB / 0.52 GB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.4159, allocations: 11.75 kB / 0.52 GB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.4163, allocations: 169.8 kB / 0.5201 GB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.4163, allocations: 4.188 kB / 0.5201 GB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.4164, allocations: 11.44 kB / 0.5201 GB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.4164, allocations: 0 / 0.5201 GB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.4165, allocations: 43.17 kB / 0.5202 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005858/0.4171, allocations: 378.4 kB / 0.5205 GB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.4174, allocations: 138.3 kB / 0.5207 GB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.4176, allocations: 59.55 kB / 0.5207 GB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.4176, allocations: 7.734 kB / 0.5207 GB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.4178, allocations: 77.77 kB / 0.5208 GB, free: 7.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.525e-06/0.4178, allocations: 0 / 0.5208 GB, free: 7.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004834/0.4183, allocations: 165.5 kB / 0.521 GB, free: 6.996 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/0.4184, allocations: 161.6 kB / 0.5211 GB, free: 6.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.4188, allocations: 268.9 kB / 0.5214 GB, free: 6.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.4188, allocations: 28.33 kB / 0.5214 GB, free: 6.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.4189, allocations: 125.4 kB / 0.5215 GB, free: 6.441 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.4189, allocations: 10.91 kB / 0.5215 GB, free: 6.434 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.405e-06/0.4189, allocations: 7.188 kB / 0.5215 GB, free: 6.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.419, allocations: 338.2 kB / 0.5219 GB, free: 6.098 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.802e-05/0.4191, allocations: 23.17 kB / 0.5219 GB, free: 6.082 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.4192, allocations: 83.66 kB / 0.522 GB, free: 5.984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.4195, allocations: 93.34 kB / 0.5221 GB, free: 5.891 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4195, allocations: 0 / 0.5221 GB, free: 5.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003119/0.4198, allocations: 146.3 kB / 0.5222 GB, free: 5.766 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.4199, allocations: 4 kB / 0.5222 GB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.4199, allocations: 4.062 kB / 0.5222 GB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.4199, allocations: 4 kB / 0.5222 GB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.42, allocations: 12 kB / 0.5222 GB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.42, allocations: 0 / 0.5222 GB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.4202, allocations: 19.8 kB / 0.5222 GB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.4202, allocations: 8.188 kB / 0.5222 GB, free: 5.719 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.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.0001406/0.4203, allocations: 152.4 kB / 0.5224 GB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.4205, allocations: 80.34 kB / 0.5225 GB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002945/0.4208, allocations: 111.6 kB / 0.5226 GB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.4208, allocations: 4 kB / 0.5226 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4208, allocations: 3.938 kB / 0.5226 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.4208, allocations: 4.094 kB / 0.5226 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.4211, allocations: 241.1 kB / 0.5228 GB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4211, allocations: 4 kB / 0.5228 GB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/0.4212, allocations: 11.88 kB / 0.5228 GB, free: 5.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.4212, allocations: 4 kB / 0.5228 GB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.4212, allocations: 3.25 kB / 0.5228 GB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.4212, allocations: 4 kB / 0.5228 GB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4212, allocations: 3.984 kB / 0.5228 GB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.4215, allocations: 174.9 kB / 0.523 GB, free: 4.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.4217, allocations: 118.4 kB / 0.5231 GB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.4217, allocations: 7.984 kB / 0.5231 GB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.4218, allocations: 6.625 kB / 0.5231 GB, free: 4.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.4219, allocations: 7.984 kB / 0.5231 GB, free: 4.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.4219, allocations: 4 kB / 0.5232 GB, free: 4.785 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000261/0.4222, allocations: 203.3 kB / 0.5233 GB, free: 4.621 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4222, allocations: 0 / 0.5233 GB, free: 4.621 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004836/0.4227, allocations: 39.69 kB / 0.5234 GB, free: 4.586 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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.001288/0.424, allocations: 434.6 kB / 0.5238 GB, free: 4.168 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002996/0.4243, allocations: 76.53 kB / 0.5239 GB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4243, allocations: 8.375 kB / 0.5239 GB, free: 4.102 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.157e-05/0.4244, allocations: 30.23 kB / 0.5239 GB, free: 4.082 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006112/0.4251, allocations: 78.55 kB / 0.524 GB, free: 4.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008379/0.4259, allocations: 374 kB / 0.5243 GB, free: 3.648 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.4262, allocations: 0.7322 MB / 0.5251 GB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.4263, allocations: 21.67 kB / 0.5251 GB, free: 2.875 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.12e-05/0.4264, allocations: 23.42 kB / 0.5251 GB, free: 2.852 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4264, allocations: 0 / 0.5251 GB, free: 2.852 MB / 330.7 MB Notification: Performance of Templates: time 0.007825/0.4342, allocations: 2.577 MB / 0.5276 GB, free: 296 kB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time