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.002078/0.002079, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.002146/0.002146, allocations: 192.2 kB / 17.39 MB, free: 5.668 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.752/1.752, allocations: 205.1 MB / 223.3 MB, free: 12.27 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.08645/0.08645, allocations: 12.59 MB / 283.2 MB, free: 15.41 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.002064/0.002064, allocations: 89.81 kB / 394.2 MB, free: 45.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.114, allocations: 49.4 MB / 443.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.005357/0.1194, allocations: 1.918 MB / 445.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.1217, allocations: 1.01 MB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.122, allocations: 3.938 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007769/0.1228, allocations: 147.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.0004228/0.1232, allocations: 123.5 kB / 446.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006442/0.1239, allocations: 175.5 kB / 446.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.1242, allocations: 187.5 kB / 447.1 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.1244, allocations: 41.62 kB / 447.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.1246, allocations: 83.58 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.1247, allocations: 71.69 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.1248, allocations: 16 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.125, allocations: 59.89 kB / 447.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.1251, allocations: 43.84 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.1252, allocations: 75.48 kB / 447.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005927/0.1258, allocations: 211.3 kB / 447.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.1259, allocations: 3.938 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.12e-06/0.1259, allocations: 0 / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.1259, allocations: 3.938 kB / 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.001423/0.1273, allocations: 0.5118 MB / 448.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.1274, allocations: 16.03 kB / 448.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.1275, allocations: 20.66 kB / 448.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006369/0.1282, allocations: 266.8 kB / 448.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.1282, allocations: 8.375 kB / 448.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.1283, allocations: 16.05 kB / 448.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/0.1288, allocations: 171.6 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1288, allocations: 0 / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.1288, allocations: 0 / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1289, allocations: 4 kB / 448.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.129, allocations: 39.92 kB / 448.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009978/0.1301, allocations: 375.2 kB / 449.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.1305, allocations: 134.5 kB / 449.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1306, allocations: 55.42 kB / 449.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.117e-05/0.1307, allocations: 7.984 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.131, allocations: 79.33 kB / 449.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.304e-06/0.131, allocations: 0 / 449.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005703/0.1315, allocations: 157.2 kB / 449.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.1317, allocations: 166.6 kB / 449.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.1321, allocations: 272.9 kB / 450 MB, free: 9.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.1321, allocations: 29.7 kB / 450 MB, free: 9.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.129e-05/0.1322, allocations: 116.4 kB / 450.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.1323, allocations: 23.81 kB / 450.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.723e-05/0.1323, allocations: 29.72 kB / 450.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1325, allocations: 334.8 kB / 450.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.085e-05/0.1326, allocations: 23.98 kB / 450.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.1327, allocations: 87.66 kB / 450.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.1329, allocations: 93.97 kB / 450.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.1329, allocations: 0 / 450.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002695/0.1332, allocations: 133.2 kB / 450.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.1332, allocations: 8 kB / 450.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1332, allocations: 0 / 450.8 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.1332, allocations: 8.188 kB / 450.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.737e-05/0.1333, allocations: 15.98 kB / 450.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.1334, allocations: 0 / 450.9 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.038e-05/0.1335, allocations: 11.94 kB / 450.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.1335, allocations: 8 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.0001404/0.1336, allocations: 141.8 kB / 451 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1338, allocations: 77.66 kB / 451.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.27e-05/0.1339, allocations: 29.8 kB / 451.1 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.1339, allocations: 4 kB / 451.1 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.1339, allocations: 4 kB / 451.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1339, allocations: 3.938 kB / 451.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.1341, allocations: 237.5 kB / 451.4 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1341, allocations: 0 / 451.4 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.262e-05/0.1342, allocations: 8 kB / 451.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.1342, allocations: 0 / 451.4 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.1342, allocations: 11.98 kB / 451.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1342, allocations: 3.938 kB / 451.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1342, allocations: 0 / 451.4 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.1345, allocations: 171.3 kB / 451.6 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.1347, allocations: 112.9 kB / 451.7 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.1347, allocations: 4 kB / 451.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.351e-05/0.1348, allocations: 7.938 kB / 451.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.1348, allocations: 11.98 kB / 451.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1348, allocations: 7.938 kB / 451.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002142/0.1351, allocations: 200.4 kB / 451.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1351, allocations: 0 / 451.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000294/0.1354, allocations: 32 kB / 451.9 MB, free: 7.621 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.001195/0.1366, allocations: 412.7 kB / 452.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.1369, allocations: 83.84 kB / 452.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1369, allocations: 3.938 kB / 452.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.129e-05/0.137, allocations: 27.98 kB / 452.4 MB, free: 7.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004939/0.1375, allocations: 74.25 kB / 452.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000717/0.1382, allocations: 334.2 kB / 452.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.1386, allocations: 0.732 MB / 453.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.1387, allocations: 21.53 kB / 453.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.17e-05/0.1388, allocations: 19.44 kB / 453.6 MB, free: 5.855 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1388, allocations: 4 kB / 453.6 MB, free: 5.852 MB / 334.1 MB Notification: Performance of Templates: time 0.007342/0.1461, allocations: 2.675 MB / 456.3 MB, free: 3.176 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