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.001373/0.001373, allocations: 107 kB / 16.45 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.001401, allocations: 186.4 kB / 17.39 MB, free: 5.684 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.657/1.657, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08313/0.08313, allocations: 12.6 MB / 283.2 MB, free: 15.4 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.001917/0.001917, allocations: 81.09 kB / 394.2 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.117, allocations: 49.42 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.003641/0.1207, allocations: 1.903 MB / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1224, allocations: 1.01 MB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1225, allocations: 7.938 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005702/0.1231, allocations: 143.6 kB / 446.6 MB, free: 13.4 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.1234, allocations: 111.5 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004781/0.1239, allocations: 183.5 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.1241, allocations: 195.5 kB / 447.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.1243, allocations: 33.66 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.1244, allocations: 83.56 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.1245, allocations: 71.69 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.67e-05/0.1245, allocations: 16 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.1247, allocations: 51.97 kB / 447.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.173e-05/0.1247, allocations: 51.77 kB / 447.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.46e-05/0.1248, allocations: 79.48 kB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003229/0.1252, allocations: 203.1 kB / 447.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1252, allocations: 3.938 kB / 447.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1252, allocations: 0 / 447.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.1252, allocations: 0 / 447.7 MB, free: 12.34 MB / 334.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.0008159/0.126, allocations: 0.5348 MB / 448.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1261, allocations: 16.03 kB / 448.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.508e-05/0.1262, allocations: 20.8 kB / 448.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.1265, allocations: 271 kB / 448.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.1265, allocations: 4.375 kB / 448.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.1266, allocations: 12.12 kB / 448.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.1269, allocations: 175.5 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.127, allocations: 0 / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.127, allocations: 11.97 kB / 448.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.127, allocations: 0 / 448.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.1271, allocations: 39.92 kB / 448.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005458/0.1277, allocations: 379.2 kB / 449.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.1279, allocations: 134.5 kB / 449.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.17e-05/0.128, allocations: 55.36 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.1281, allocations: 8 kB / 449.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001649/0.1282, allocations: 79.31 kB / 449.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1282, allocations: 0 / 449.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003973/0.1286, allocations: 149.5 kB / 449.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.1288, allocations: 162.5 kB / 449.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.1291, allocations: 284.9 kB / 450 MB, free: 9.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1291, allocations: 29.7 kB / 450 MB, free: 9.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.1292, allocations: 116.4 kB / 450.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.1293, allocations: 15.91 kB / 450.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-05/0.1293, allocations: 37.66 kB / 450.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1295, allocations: 334.8 kB / 450.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.176e-05/0.1295, allocations: 16 kB / 450.5 MB, free: 9.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.1297, allocations: 95.64 kB / 450.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.1298, allocations: 93.97 kB / 450.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1298, allocations: 0 / 450.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002225/0.1301, allocations: 125.8 kB / 450.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.1301, allocations: 8 kB / 450.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.1301, allocations: 4 kB / 450.8 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1301, allocations: 8.188 kB / 450.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.815e-05/0.1302, allocations: 15.94 kB / 450.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.1303, allocations: 3.984 kB / 450.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.358e-05/0.1303, allocations: 15.83 kB / 450.9 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.1304, allocations: 12 kB / 450.9 MB, free: 8.758 MB / 334.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.0001615/0.1305, allocations: 141.8 kB / 451 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.1306, allocations: 73.53 kB / 451.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.395e-05/0.1307, allocations: 25.8 kB / 451.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1307, allocations: 4 kB / 451.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1307, allocations: 0 / 451.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.1307, allocations: 7.938 kB / 451.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.131, allocations: 229.6 kB / 451.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.131, allocations: 0 / 451.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.651e-05/0.131, allocations: 8 kB / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1311, allocations: 0 / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.1311, allocations: 4 kB / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1311, allocations: 0 / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1311, allocations: 7.938 kB / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.1314, allocations: 183.4 kB / 451.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.211e-05/0.1315, allocations: 112.9 kB / 451.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.1315, allocations: 4 kB / 451.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.1316, allocations: 4 kB / 451.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/0.1316, allocations: 15.92 kB / 451.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.1317, allocations: 7.938 kB / 451.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.1319, allocations: 200.5 kB / 451.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1319, allocations: 0 / 451.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1321, allocations: 24 kB / 451.9 MB, free: 7.613 MB / 334.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.001014/0.1332, allocations: 424.5 kB / 452.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002414/0.1334, allocations: 75.91 kB / 452.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1334, allocations: 4 kB / 452.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.346e-05/0.1335, allocations: 27.88 kB / 452.5 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.134, allocations: 70.72 kB / 452.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005651/0.1345, allocations: 333.9 kB / 452.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.1349, allocations: 0.7281 MB / 453.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.208e-05/0.135, allocations: 25.52 kB / 453.6 MB, free: 5.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.79e-05/0.1351, allocations: 27.44 kB / 453.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1351, allocations: 0 / 453.6 MB, free: 5.84 MB / 334.1 MB Notification: Performance of Templates: time 0.006491/0.1416, allocations: 2.675 MB / 456.3 MB, free: 3.164 MB / 334.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches