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.001028/0.001028, allocations: 175.5 kB / 16.45 MB, free: 5.684 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.264/1.264, allocations: 205.4 MB / 222.6 MB, free: 9.098 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.0007195/0.0007195, allocations: 95.78 kB / 270.9 MB, free: 8.352 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.06663/0.06663, allocations: 12.58 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004063, allocations: 15.98 kB / 392.7 MB, free: 66.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07702/0.07744, allocations: 50.37 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.001684/0.07916, allocations: 1.575 MB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.08022, allocations: 0.9408 MB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.411e-05/0.08033, allocations: 7.938 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000436/0.08077, allocations: 135.6 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.08097, allocations: 95.69 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.08135, allocations: 163.6 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.0815, allocations: 175.5 kB / 446.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.893e-05/0.0816, allocations: 37.58 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.434e-05/0.08168, allocations: 63.7 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.707e-05/0.08177, allocations: 67.62 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.0818, allocations: 4 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.279e-05/0.0819, allocations: 39.98 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.411e-05/0.08195, allocations: 39.83 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.08199, allocations: 53.58 kB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.08214, allocations: 156 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.08215, allocations: 0 / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.08216, allocations: 4 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.08217, allocations: 0 / 446.6 MB, free: 12.23 MB / 298.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.0004954/0.08267, allocations: 484.1 kB / 447 MB, free: 11.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.909e-05/0.08271, allocations: 12.03 kB / 447.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.08275, allocations: 27.64 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.08302, allocations: 265.6 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.08305, allocations: 8 kB / 447.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.08307, allocations: 12 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.08334, allocations: 167.5 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.08336, allocations: 0 / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.08338, allocations: 12 kB / 447.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.08339, allocations: 0 / 447.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.794e-05/0.08348, allocations: 35.92 kB / 447.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003528/0.08384, allocations: 379.1 kB / 447.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.08402, allocations: 126.5 kB / 448.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.945e-05/0.0841, allocations: 59.42 kB / 448.1 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.08413, allocations: 11.92 kB / 448.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/0.08427, allocations: 71.39 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.08428, allocations: 0 / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002954/0.08458, allocations: 161.2 kB / 448.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.08463, allocations: 170.2 kB / 448.5 MB, free: 9.977 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.08482, allocations: 265 kB / 448.8 MB, free: 9.711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.08485, allocations: 25.7 kB / 448.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.357e-05/0.08491, allocations: 120.3 kB / 448.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.08493, allocations: 20.2 kB / 448.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.08494, allocations: 4 kB / 448.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.085, allocations: 330.8 kB / 449.3 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-05/0.08507, allocations: 27.98 kB / 449.3 MB, free: 9.176 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.698e-05/0.08514, allocations: 79.66 kB / 449.4 MB, free: 9.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.134e-05/0.08521, allocations: 36.02 kB / 449.4 MB, free: 9.035 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.08522, allocations: 0 / 449.4 MB, free: 9.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001716/0.0854, allocations: 129.2 kB / 449.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.08541, allocations: 12.19 kB / 449.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.08542, allocations: 0 / 449.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.08544, allocations: 4 kB / 449.6 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.9e-05/0.08551, allocations: 15.98 kB / 449.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.08553, allocations: 3.938 kB / 449.6 MB, free: 8.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.989e-05/0.0856, allocations: 19.89 kB / 449.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.08562, allocations: 4 kB / 449.6 MB, free: 8.844 MB / 298.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 8.118e-05/0.0857, allocations: 141.9 kB / 449.7 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.197e-05/0.08578, allocations: 85.34 kB / 449.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.08583, allocations: 25.7 kB / 449.8 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.08584, allocations: 0 / 449.8 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.08584, allocations: 8 kB / 449.9 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.08585, allocations: 0 / 449.9 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.08597, allocations: 233.5 kB / 450.1 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.08598, allocations: 4 kB / 450.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.603e-05/0.08601, allocations: 7.938 kB / 450.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.08602, allocations: 0 / 450.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.08604, allocations: 12.09 kB / 450.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.08604, allocations: 0 / 450.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.08605, allocations: 4 kB / 450.1 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.08624, allocations: 179.2 kB / 450.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.655e-05/0.08631, allocations: 108.8 kB / 450.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.08634, allocations: 12 kB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.431e-05/0.08641, allocations: 7.984 kB / 450.4 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.009e-05/0.08645, allocations: 4 kB / 450.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.171e-05/0.08647, allocations: 8 kB / 450.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.0866, allocations: 196.5 kB / 450.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0866, allocations: 0 / 450.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.08684, allocations: 31.98 kB / 450.6 MB, free: 7.691 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0007067/0.08755, allocations: 413.3 kB / 451 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001785/0.08774, allocations: 83.72 kB / 451.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.08775, allocations: 0 / 451.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.717e-05/0.08781, allocations: 27.98 kB / 451.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.08818, allocations: 76.31 kB / 451.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.08863, allocations: 395 kB / 451.6 MB, free: 6.664 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.08877, allocations: 0.7284 MB / 452.3 MB, free: 5.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.08881, allocations: 23.44 kB / 452.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.08882, allocations: 4 kB / 452.4 MB, free: 5.887 MB / 298.7 MB Notification: Performance of Templates: time 0.003528/0.09235, allocations: 2.758 MB / 455.1 MB, free: 3.125 MB / 298.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) Reference file matches