Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 111.4 kB / 16.92 MB, free: 5.895 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.001451/0.001452, allocations: 191.3 kB / 17.85 MB, free: 5.191 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.496/1.496, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 47.08 kB / 300.6 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1283, allocations: 49.43 MB / 350.1 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004023/0.1324, allocations: 1.884 MB / 351.9 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.1344, allocations: 1.052 MB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.1347, allocations: 4 kB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007242/0.1354, allocations: 154.6 kB / 353.1 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.1358, allocations: 111.5 kB / 353.3 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007845/0.1366, allocations: 198.4 kB / 353.4 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.137, allocations: 179.5 kB / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.1371, allocations: 37.53 kB / 353.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.1373, allocations: 79.62 kB / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.1375, allocations: 71.69 kB / 353.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.1375, allocations: 8 kB / 353.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1377, allocations: 47.92 kB / 353.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.458e-05/0.1378, allocations: 43.84 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.081e-05/0.1379, allocations: 75.53 kB / 354 MB, free: 480 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.1383, allocations: 191.7 kB / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1383, allocations: 0 / 354.2 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1383, allocations: 3.938 kB / 354.2 MB, free: 284 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1383, allocations: 0 / 354.2 MB, free: 284 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001059/0.1394, allocations: 0.5157 MB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.1394, allocations: 11.89 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.839e-05/0.1395, allocations: 24.73 kB / 354.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004057/0.1399, allocations: 262.8 kB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.14, allocations: 384 / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.14, allocations: 16.06 kB / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.1404, allocations: 142.7 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1404, allocations: 0 / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.1404, allocations: 4 kB / 355.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1404, allocations: 4 kB / 355.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.1406, allocations: 35.91 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006306/0.1412, allocations: 358.4 kB / 355.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002341/0.1414, allocations: 111.9 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.412e-05/0.1415, allocations: 42.56 kB / 355.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.1416, allocations: 4 kB / 355.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.1418, allocations: 75.33 kB / 355.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.425e-06/0.1418, allocations: 0 / 355.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004454/0.1423, allocations: 141.3 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.373e-05/0.1424, allocations: 144.4 kB / 356 MB, free: 14.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.1427, allocations: 260.9 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.1427, allocations: 33.7 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/0.1428, allocations: 112.1 kB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.076e-05/0.1429, allocations: 15.83 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-05/0.143, allocations: 33.95 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1431, allocations: 334.8 kB / 356.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.773e-05/0.1432, allocations: 19.98 kB / 356.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.1433, allocations: 73.92 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.1435, allocations: 80.25 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1435, allocations: 4 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002321/0.1437, allocations: 113.4 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.1437, allocations: 6.812 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1438, allocations: 4 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1438, allocations: 4.125 kB / 357.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.873e-05/0.1439, allocations: 12 kB / 357.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.1439, allocations: 0 / 357.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.197e-05/0.144, allocations: 23.81 kB / 357.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.144, allocations: 4 kB / 357.1 MB, free: 12.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.0001547/0.1442, allocations: 150.6 kB / 357.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.698e-05/0.1443, allocations: 61.45 kB / 357.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.615e-05/0.1443, allocations: 25.77 kB / 357.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1443, allocations: 0 / 357.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.1444, allocations: 4 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1444, allocations: 3.938 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.1446, allocations: 229.5 kB / 357.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1446, allocations: 0 / 357.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-05/0.1446, allocations: 4 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1446, allocations: 4 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1447, allocations: 0 / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.1447, allocations: 0 / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.1447, allocations: 4 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.1449, allocations: 162.4 kB / 357.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.208e-05/0.145, allocations: 100.9 kB / 357.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.1451, allocations: 4 kB / 357.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.418e-05/0.1452, allocations: 12.08 kB / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.1452, allocations: 7.938 kB / 357.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1453, allocations: 7.938 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000231/0.1455, allocations: 196.5 kB / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1455, allocations: 0 / 358.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.1458, allocations: 32 kB / 358.1 MB, free: 11.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * 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.001247/0.1471, allocations: 425.2 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002801/0.1474, allocations: 72.03 kB / 358.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1474, allocations: 4.062 kB / 358.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.516e-05/0.1475, allocations: 31.91 kB / 358.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.148, allocations: 56.44 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007102/0.1487, allocations: 308.9 kB / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.1491, allocations: 0.7397 MB / 359.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.1493, allocations: 25.52 kB / 359.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.362e-05/0.1493, allocations: 19.44 kB / 359.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of SimCode: time 1.393e-06/0.1493, allocations: 0 / 359.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of Templates: time 0.007131/0.1565, allocations: 2.454 MB / 362.2 MB, free: 7.883 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches