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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007448/0.0007449, allocations: 97.17 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007887/0.000789, allocations: 180.3 kB / 16.96 MB, free: 6.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.4 MB / 223.1 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06259/0.06259, allocations: 12.6 MB / 284 MB, free: 8.594 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007659/0.0007658, allocations: 24 kB / 345.2 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07652/0.07729, allocations: 50.39 MB / 395.6 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.00197/0.0793, allocations: 1.611 MB / 397.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.08064, allocations: 0.9638 MB / 398.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.08077, allocations: 3.938 kB / 398.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005002/0.08128, allocations: 135.7 kB / 398.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002528/0.08154, allocations: 107.6 kB / 398.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.08203, allocations: 175.6 kB / 398.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.08226, allocations: 187.5 kB / 398.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.08237, allocations: 29.95 kB / 398.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.08248, allocations: 71.58 kB / 398.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.0826, allocations: 63.69 kB / 398.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.08262, allocations: 7.938 kB / 398.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.08275, allocations: 43.98 kB / 398.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.052e-05/0.08281, allocations: 39.83 kB / 399 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.731e-05/0.0829, allocations: 97.19 kB / 399.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.08319, allocations: 203.2 kB / 399.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.08321, allocations: 4 kB / 399.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.08321, allocations: 0 / 399.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.08322, allocations: 0 / 399.3 MB, free: 14.68 MB / 302.1 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.000639/0.08387, allocations: 492.3 kB / 399.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.08391, allocations: 8.031 kB / 399.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.08397, allocations: 24.66 kB / 399.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.08429, allocations: 270.7 kB / 400 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.08432, allocations: 8.375 kB / 400.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.08435, allocations: 12.11 kB / 400.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.08466, allocations: 167.5 kB / 400.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.08468, allocations: 8 kB / 400.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.08471, allocations: 4 kB / 400.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.08472, allocations: 0 / 400.2 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.51e-05/0.08482, allocations: 39.92 kB / 400.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004355/0.08526, allocations: 383.1 kB / 400.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.08549, allocations: 134.5 kB / 400.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.215e-05/0.08558, allocations: 55.42 kB / 400.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.08561, allocations: 7.984 kB / 400.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001379/0.08576, allocations: 75.33 kB / 400.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.08577, allocations: 0 / 400.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003381/0.08611, allocations: 161.2 kB / 401.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.0862, allocations: 162.2 kB / 401.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.08645, allocations: 265 kB / 401.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.08648, allocations: 29.7 kB / 401.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.646e-05/0.08656, allocations: 120.7 kB / 401.6 MB, free: 12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.0866, allocations: 23.83 kB / 401.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.08663, allocations: 17.72 kB / 401.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.08674, allocations: 338.8 kB / 402 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.756e-05/0.08681, allocations: 20 kB / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.142e-05/0.0869, allocations: 83.64 kB / 402.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.08704, allocations: 93.97 kB / 402.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.08708, allocations: 3.938 kB / 402.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002187/0.08731, allocations: 137.2 kB / 402.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.08733, allocations: 4 kB / 402.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.08734, allocations: 4 kB / 402.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.08736, allocations: 4 kB / 402.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.012e-05/0.08744, allocations: 11.98 kB / 402.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.08745, allocations: 4 kB / 402.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.249e-05/0.08753, allocations: 12.12 kB / 402.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.08755, allocations: 11.94 kB / 402.4 MB, free: 11.17 MB / 302.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.08767, allocations: 142.1 kB / 402.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/0.08776, allocations: 81.28 kB / 402.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.08782, allocations: 25.7 kB / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.08783, allocations: 8 kB / 402.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.08784, allocations: 0 / 402.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.08785, allocations: 3.938 kB / 402.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.08803, allocations: 237.7 kB / 402.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.08805, allocations: 0 / 402.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.829e-05/0.08808, allocations: 11.94 kB / 402.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.08809, allocations: 0 / 402.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.0881, allocations: 8 kB / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.08811, allocations: 0 / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.08812, allocations: 3.984 kB / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.08835, allocations: 167.3 kB / 403.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/0.08844, allocations: 112.9 kB / 403.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.08848, allocations: 8 kB / 403.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.346e-05/0.08855, allocations: 7.984 kB / 403.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.08859, allocations: 7.938 kB / 403.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.08861, allocations: 11.88 kB / 403.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.08879, allocations: 200.5 kB / 403.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0888, allocations: 4 kB / 403.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002512/0.08906, allocations: 35.98 kB / 403.5 MB, free: 10.01 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008321/0.0899, allocations: 403.9 kB / 403.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.0901, allocations: 79.84 kB / 403.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.09011, allocations: 384 / 403.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.058e-05/0.09019, allocations: 31.98 kB / 404 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.09061, allocations: 73.02 kB / 404 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005406/0.09117, allocations: 380.9 kB / 404.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.0915, allocations: 0.7362 MB / 405.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.159e-05/0.09159, allocations: 25.52 kB / 405.2 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.09163, allocations: 19.44 kB / 405.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09164, allocations: 0 / 405.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Templates: time 0.005389/0.09703, allocations: 2.51 MB / 407.7 MB, free: 5.699 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/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