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.001175/0.001175, allocations: 97.98 kB / 16.31 MB, free: 5.988 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.001404/0.001404, allocations: 181.1 kB / 17.2 MB, free: 5.922 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.581/1.581, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004226/0.000423, allocations: 5.844 kB / 300.7 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1373, allocations: 50.43 MB / 351.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002547/0.1398, allocations: 1.557 MB / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1416, allocations: 0.9478 MB / 353.6 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.1418, allocations: 7.875 kB / 353.7 MB, free: 9.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005603/0.1424, allocations: 131.7 kB / 353.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.1427, allocations: 95.75 kB / 353.9 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005756/0.1433, allocations: 161.9 kB / 354 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.1435, allocations: 115.7 kB / 354.1 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.1436, allocations: 29.53 kB / 354.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.1438, allocations: 71.69 kB / 354.2 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.714e-05/0.1439, allocations: 51.77 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.1439, allocations: 4 kB / 354.3 MB, free: 8.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.144, allocations: 31.97 kB / 354.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.988e-05/0.1441, allocations: 39.84 kB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.98e-05/0.1442, allocations: 45.64 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.1444, allocations: 151.6 kB / 354.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.1444, allocations: 0 / 354.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1444, allocations: 0 / 354.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.453e-06/0.1444, allocations: 4 kB / 354.6 MB, free: 8.273 MB / 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.0007055/0.1451, allocations: 492.2 kB / 355 MB, free: 7.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1452, allocations: 8.031 kB / 355.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.863e-05/0.1452, allocations: 23.67 kB / 355.1 MB, free: 7.707 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.1456, allocations: 257.7 kB / 355.3 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.1456, allocations: 8 kB / 355.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.1456, allocations: 4 kB / 355.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.146, allocations: 142.7 kB / 355.5 MB, free: 7.242 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.146, allocations: 0 / 355.5 MB, free: 7.242 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.146, allocations: 4 kB / 355.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.146, allocations: 0 / 355.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.1461, allocations: 43.84 kB / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004725/0.1466, allocations: 358.5 kB / 355.9 MB, free: 6.789 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.1468, allocations: 103.9 kB / 356 MB, free: 6.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.1469, allocations: 4 kB / 356 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.147, allocations: 83.41 kB / 356.1 MB, free: 6.562 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.147, allocations: 0 / 356.1 MB, free: 6.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003416/0.1474, allocations: 133.4 kB / 356.2 MB, free: 6.426 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.1475, allocations: 144.8 kB / 356.3 MB, free: 6.254 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.1478, allocations: 268.8 kB / 356.6 MB, free: 5.984 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.1478, allocations: 37.64 kB / 356.6 MB, free: 5.941 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.1479, allocations: 108.1 kB / 356.7 MB, free: 5.832 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.1479, allocations: 19.88 kB / 356.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.1479, allocations: 0 / 356.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1481, allocations: 334.8 kB / 357.1 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.397e-05/0.1482, allocations: 16 kB / 357.1 MB, free: 5.461 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.298e-05/0.1483, allocations: 69.94 kB / 357.2 MB, free: 5.371 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.458e-05/0.1484, allocations: 31.98 kB / 357.2 MB, free: 5.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1484, allocations: 0 / 357.2 MB, free: 5.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002294/0.1486, allocations: 117.4 kB / 357.3 MB, free: 5.219 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1486, allocations: 8 kB / 357.3 MB, free: 5.211 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1486, allocations: 7.891 kB / 357.3 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.1487, allocations: 0 / 357.3 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.274e-05/0.1488, allocations: 15.94 kB / 357.4 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1488, allocations: 0 / 357.4 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.263e-05/0.1488, allocations: 11.98 kB / 357.4 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1489, allocations: 8.125 kB / 357.4 MB, free: 5.168 MB / 286.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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.149, allocations: 141.8 kB / 357.5 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.769e-05/0.1491, allocations: 61.36 kB / 357.6 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.561e-05/0.1492, allocations: 29.69 kB / 357.6 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1492, allocations: 7.953 kB / 357.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1492, allocations: 0 / 357.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1492, allocations: 0 / 357.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.1494, allocations: 221.6 kB / 357.8 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1494, allocations: 8.062 kB / 357.8 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.727e-05/0.1494, allocations: 4 kB / 357.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1494, allocations: 0 / 357.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.1495, allocations: 0 / 357.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1495, allocations: 4.312 kB / 357.8 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.1495, allocations: 3.953 kB / 357.8 MB, free: 4.625 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.1498, allocations: 185.9 kB / 358 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.1499, allocations: 116.8 kB / 358.1 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.1499, allocations: 4 kB / 358.1 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.187e-05/0.15, allocations: 7.938 kB / 358.1 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/0.1501, allocations: 7.984 kB / 358.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.1501, allocations: 4 kB / 358.2 MB, free: 4.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002082/0.1503, allocations: 192.5 kB / 358.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1503, allocations: 4 kB / 358.4 MB, free: 4.059 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000268/0.1506, allocations: 28 kB / 358.4 MB, free: 4.031 MB / 286.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 (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.0009956/0.1516, allocations: 418.3 kB / 358.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002158/0.1518, allocations: 63.91 kB / 358.9 MB, free: 3.711 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.1518, allocations: 4 kB / 358.9 MB, free: 3.707 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.507e-05/0.1519, allocations: 28.17 kB / 358.9 MB, free: 3.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.1523, allocations: 56.38 kB / 358.9 MB, free: 3.625 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006549/0.153, allocations: 339.5 kB / 359.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.1534, allocations: 0.7399 MB / 360 MB, free: 2.492 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.996e-05/0.1535, allocations: 21.55 kB / 360 MB, free: 2.473 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.1535, allocations: 15.44 kB / 360 MB, free: 2.457 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1535, allocations: 3.938 kB / 360 MB, free: 2.453 MB / 286.1 MB Notification: Performance of Templates: time 0.006498/0.16, allocations: 2.262 MB / 362.3 MB, free: 224 kB / 286.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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches