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.001352/0.001352, allocations: 104.8 kB / 16.45 MB, free: 6.441 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.001334/0.001334, allocations: 188.9 kB / 17.39 MB, free: 5.688 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.705/1.705, 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.08015/0.08015, allocations: 12.6 MB / 283.2 MB, free: 15.39 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.001861/0.001861, allocations: 86.56 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1033, allocations: 49.4 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.004114/0.1075, allocations: 1.907 MB / 445.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1094, allocations: 1.01 MB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.1096, allocations: 4 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006453/0.1103, allocations: 155.5 kB / 446.6 MB, free: 13.39 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.000408/0.1107, allocations: 111.6 kB / 446.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005045/0.1112, allocations: 179.5 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002445/0.1115, allocations: 191.5 kB / 447.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.1116, allocations: 41.64 kB / 447.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.1117, allocations: 83.62 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.1118, allocations: 75.62 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.1119, allocations: 8 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.112, allocations: 59.91 kB / 447.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.1121, allocations: 39.89 kB / 447.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.87e-05/0.1122, allocations: 75.48 kB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003189/0.1125, allocations: 219.2 kB / 447.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1125, allocations: 0 / 447.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1125, allocations: 4 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1126, allocations: 0 / 447.7 MB, free: 12.32 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.0008642/0.1134, allocations: 0.5195 MB / 448.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1135, allocations: 8.031 kB / 448.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.11e-05/0.1136, allocations: 24.66 kB / 448.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.114, allocations: 270.8 kB / 448.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.114, allocations: 8.375 kB / 448.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.114, allocations: 12.12 kB / 448.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004093/0.1144, allocations: 175.4 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1145, allocations: 3.938 kB / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.1145, allocations: 4 kB / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.1145, allocations: 0 / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.1146, allocations: 39.92 kB / 448.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.1152, allocations: 367.2 kB / 449.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.1154, allocations: 138.5 kB / 449.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.341e-05/0.1155, allocations: 59.36 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.1156, allocations: 3.984 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.1158, allocations: 75.39 kB / 449.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.1158, allocations: 0 / 449.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004055/0.1162, allocations: 165.5 kB / 449.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.1163, allocations: 170.1 kB / 449.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.1166, allocations: 265 kB / 450 MB, free: 9.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1166, allocations: 29.7 kB / 450 MB, free: 9.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.858e-05/0.1167, allocations: 120.4 kB / 450.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.1168, allocations: 15.73 kB / 450.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.1168, allocations: 33.81 kB / 450.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.117, allocations: 338.8 kB / 450.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.382e-05/0.117, allocations: 19.98 kB / 450.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.1172, allocations: 79.72 kB / 450.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.1173, allocations: 97.91 kB / 450.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1173, allocations: 4 kB / 450.7 MB, free: 8.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002379/0.1176, allocations: 133.3 kB / 450.8 MB, free: 8.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1176, allocations: 4 kB / 450.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1176, allocations: 4 kB / 450.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.1176, allocations: 3.984 kB / 450.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.442e-05/0.1177, allocations: 19.92 kB / 450.9 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1178, allocations: 4 kB / 450.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.966e-05/0.1178, allocations: 7.938 kB / 450.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.537e-06/0.1178, allocations: 4 kB / 450.9 MB, free: 8.781 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.0001412/0.118, allocations: 146 kB / 451 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.1181, allocations: 77.66 kB / 451.1 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.673e-05/0.1182, allocations: 25.7 kB / 451.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1182, allocations: 0 / 451.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.1182, allocations: 11.94 kB / 451.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1182, allocations: 3.938 kB / 451.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.1184, allocations: 237.6 kB / 451.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1185, allocations: 96 / 451.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.763e-05/0.1185, allocations: 8 kB / 451.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.1185, allocations: 4 kB / 451.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.1185, allocations: 3.938 kB / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1185, allocations: 3.984 kB / 451.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1185, allocations: 4 kB / 451.4 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000274/0.1188, allocations: 179.2 kB / 451.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.868e-05/0.1189, allocations: 104.9 kB / 451.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.1189, allocations: 8 kB / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.212e-05/0.119, allocations: 4 kB / 451.7 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.299e-05/0.1191, allocations: 11.98 kB / 451.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1191, allocations: 7.938 kB / 451.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.1193, allocations: 196.5 kB / 451.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1193, allocations: 0 / 451.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002563/0.1195, allocations: 36 kB / 451.9 MB, free: 7.617 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.0009565/0.1205, allocations: 416.6 kB / 452.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.1207, allocations: 75.84 kB / 452.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1207, allocations: 4 kB / 452.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.581e-05/0.1208, allocations: 23.98 kB / 452.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004476/0.1213, allocations: 74.88 kB / 452.5 MB, free: 7.027 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00055/0.1218, allocations: 329.5 kB / 452.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.1222, allocations: 0.7322 MB / 453.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.628e-05/0.1223, allocations: 29.52 kB / 453.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.239e-05/0.1223, allocations: 19.44 kB / 453.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1224, allocations: 4 kB / 453.6 MB, free: 5.852 MB / 334.1 MB Notification: Performance of Templates: time 0.006322/0.1287, allocations: 2.671 MB / 456.3 MB, free: 3.18 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