Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.00131/0.00131, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001583/0.001582, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 54.58 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1266, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004161/0.1308, allocations: 1.914 MB / 353.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.133, allocations: 1.087 MB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.1331, allocations: 0 / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007178/0.1339, allocations: 151.5 kB / 354.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.1342, allocations: 115.6 kB / 354.8 MB, free: 416 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006372/0.1349, allocations: 210.4 kB / 355 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.1352, allocations: 187.5 kB / 355.1 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.1354, allocations: 37.67 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.1355, allocations: 87.55 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.1357, allocations: 71.64 kB / 355.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.1357, allocations: 11.98 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1358, allocations: 59.91 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.026e-05/0.1359, allocations: 39.84 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.136, allocations: 75.53 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.1364, allocations: 211.2 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1364, allocations: 0 / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1364, allocations: 0 / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1364, allocations: 0 / 355.7 MB, free: 15.44 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.0008149/0.1373, allocations: 0.5273 MB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1373, allocations: 11.89 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.933e-05/0.1374, allocations: 20.66 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.1378, allocations: 274.8 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.1378, allocations: 8.375 kB / 356.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.1378, allocations: 12.06 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/0.1382, allocations: 167.6 kB / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1382, allocations: 0 / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.1383, allocations: 0 / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1383, allocations: 0 / 356.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.1384, allocations: 43.91 kB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005176/0.1389, allocations: 375.1 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.1392, allocations: 142.5 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.1393, allocations: 51.36 kB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.1393, allocations: 12.06 kB / 357.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.1395, allocations: 75.33 kB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1395, allocations: 0 / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004101/0.1399, allocations: 169.2 kB / 357.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1401, allocations: 162.6 kB / 357.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.1404, allocations: 265 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.1404, allocations: 29.7 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.246e-05/0.1405, allocations: 120.4 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.1405, allocations: 15.81 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.061e-05/0.1406, allocations: 37.61 kB / 358.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1408, allocations: 334.7 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.331e-05/0.1408, allocations: 19.98 kB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.141, allocations: 87.66 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.1411, allocations: 93.97 kB / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.1411, allocations: 4 kB / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002309/0.1414, allocations: 129.3 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1414, allocations: 4.188 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.1414, allocations: 11.98 kB / 358.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1414, allocations: 0 / 358.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.794e-05/0.1415, allocations: 12 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1415, allocations: 4 kB / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.52e-05/0.1416, allocations: 15.86 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1416, allocations: 8 kB / 358.9 MB, free: 11.88 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,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.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.0001487/0.1418, allocations: 141.8 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1419, allocations: 85.34 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.594e-05/0.142, allocations: 21.7 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.142, allocations: 0 / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.142, allocations: 4 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.142, allocations: 7.922 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.1422, allocations: 225.6 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1422, allocations: 320 / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-05/0.1423, allocations: 7.984 kB / 359.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1423, allocations: 4 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.1423, allocations: 4 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.1423, allocations: 15.97 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1423, allocations: 0 / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.1426, allocations: 171.3 kB / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1427, allocations: 108.8 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.1427, allocations: 8 kB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.514e-05/0.1428, allocations: 7.984 kB / 359.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.1429, allocations: 8 kB / 359.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.1429, allocations: 7.938 kB / 359.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.1431, allocations: 200.4 kB / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1431, allocations: 0 / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002639/0.1433, allocations: 35.98 kB / 360 MB, free: 10.72 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.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.001035/0.1444, allocations: 425.8 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.1446, allocations: 79.84 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1446, allocations: 4 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.914e-05/0.1447, allocations: 19.98 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.1452, allocations: 79.75 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005996/0.1458, allocations: 349.5 kB / 360.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.1462, allocations: 0.732 MB / 361.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.033e-05/0.1462, allocations: 25.53 kB / 361.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.1463, allocations: 23.42 kB / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1463, allocations: 0 / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Templates: time 0.006572/0.1529, allocations: 2.65 MB / 364.3 MB, free: 6.477 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches