Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001366/0.001366, allocations: 177.7 kB / 16.77 MB, free: 4.922 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.741/1.741, allocations: 205.4 MB / 222.9 MB, free: 9 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.0007644/0.0007645, allocations: 86.36 kB / 271.3 MB, free: 8.238 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.08541/0.08541, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004179/0.000418, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1017, allocations: 50.38 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.001997/0.1037, allocations: 1.579 MB / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.105, allocations: 0.9253 MB / 445.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.1052, allocations: 11.94 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005234/0.1057, allocations: 131.7 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002143/0.1059, allocations: 99.62 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/0.1063, allocations: 163.6 kB / 445.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.1065, allocations: 171.5 kB / 446 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.1066, allocations: 33.67 kB / 446.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.361e-05/0.1067, allocations: 67.64 kB / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.988e-05/0.1068, allocations: 67.62 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.1069, allocations: 4 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.107, allocations: 39.98 kB / 446.2 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.571e-05/0.107, allocations: 39.83 kB / 446.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.756e-05/0.1071, allocations: 89.31 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.1073, allocations: 151.9 kB / 446.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1073, allocations: 0 / 446.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1073, allocations: 3.938 kB / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.1073, allocations: 0 / 446.5 MB, free: 12.53 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.0005789/0.1079, allocations: 0.4924 MB / 447 MB, free: 11.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1079, allocations: 8.031 kB / 447 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.108, allocations: 20.66 kB / 447 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.1082, allocations: 274.7 kB / 447.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.1083, allocations: 12.36 kB / 447.3 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.1083, allocations: 8.125 kB / 447.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.1086, allocations: 163.6 kB / 447.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1086, allocations: 0 / 447.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.1086, allocations: 8 kB / 447.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1086, allocations: 0 / 447.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.392e-05/0.1087, allocations: 39.92 kB / 447.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.1091, allocations: 379.1 kB / 447.9 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.1093, allocations: 130.5 kB / 448 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.392e-05/0.1094, allocations: 63.41 kB / 448.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.1094, allocations: 8.062 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.1096, allocations: 75.33 kB / 448.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.1096, allocations: 0 / 448.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003154/0.1099, allocations: 161.2 kB / 448.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.11, allocations: 166.2 kB / 448.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.1102, allocations: 261 kB / 448.7 MB, free: 10 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.1102, allocations: 33.7 kB / 448.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.185e-05/0.1103, allocations: 120.3 kB / 448.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.1103, allocations: 12.27 kB / 448.9 MB, free: 9.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-06/0.1103, allocations: 8 kB / 448.9 MB, free: 9.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.516e-05/0.1104, allocations: 330.8 kB / 449.2 MB, free: 9.492 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.531e-05/0.1104, allocations: 23.98 kB / 449.3 MB, free: 9.469 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-05/0.1105, allocations: 83.66 kB / 449.3 MB, free: 9.359 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.1106, allocations: 102.2 kB / 449.4 MB, free: 9.238 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1106, allocations: 4 kB / 449.4 MB, free: 9.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001724/0.1108, allocations: 133.2 kB / 449.6 MB, free: 9.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1108, allocations: 7.984 kB / 449.6 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1108, allocations: 4 kB / 449.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.1109, allocations: 0 / 449.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.1109, allocations: 12 kB / 449.6 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.1109, allocations: 3.938 kB / 449.6 MB, free: 9.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.857e-05/0.111, allocations: 23.86 kB / 449.6 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.111, allocations: 8.188 kB / 449.6 MB, free: 9.039 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 9.433e-05/0.1111, allocations: 141.6 kB / 449.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.461e-05/0.1112, allocations: 81.34 kB / 449.9 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.372e-05/0.1113, allocations: 25.66 kB / 449.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1113, allocations: 0 / 449.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1113, allocations: 7.984 kB / 449.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.1113, allocations: 3.938 kB / 449.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.1114, allocations: 225.7 kB / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1114, allocations: 0 / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.651e-05/0.1115, allocations: 15.92 kB / 450.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1115, allocations: 0 / 450.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.1115, allocations: 4 kB / 450.1 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1115, allocations: 0 / 450.1 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1115, allocations: 4 kB / 450.1 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.1117, allocations: 179.3 kB / 450.3 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.346e-05/0.1118, allocations: 108.8 kB / 450.4 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.1118, allocations: 11.94 kB / 450.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.021e-05/0.1119, allocations: 8.062 kB / 450.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.1119, allocations: 7.984 kB / 450.4 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.1119, allocations: 11.94 kB / 450.5 MB, free: 8.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001369/0.1121, allocations: 196.5 kB / 450.6 MB, free: 7.922 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1121, allocations: 4 kB / 450.7 MB, free: 7.918 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.1123, allocations: 28 kB / 450.7 MB, free: 7.891 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.0008265/0.1132, allocations: 414.2 kB / 451.1 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001879/0.1134, allocations: 79.78 kB / 451.2 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1134, allocations: 0 / 451.2 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.683e-05/0.1134, allocations: 24.5 kB / 451.2 MB, free: 7.375 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.1138, allocations: 80.48 kB / 451.3 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004456/0.1143, allocations: 394.7 kB / 451.7 MB, free: 6.867 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.1144, allocations: 0.7323 MB / 452.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.804e-05/0.1145, allocations: 23.42 kB / 452.4 MB, free: 6.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1145, allocations: 0 / 452.4 MB, free: 6.09 MB / 298.7 MB Notification: Performance of Templates: time 0.003765/0.1183, allocations: 2.754 MB / 455.2 MB, free: 3.332 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches