Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008619/0.000862, allocations: 98.45 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008833/0.0008834, allocations: 192.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.592/1.592, allocations: 227.7 MB / 246.4 MB, free: 9.816 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 4 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1413, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002565/0.144, allocations: 1.58 MB / 360.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001942/0.1459, allocations: 1.112 MB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.1461, allocations: 7.938 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006564/0.1468, allocations: 131.6 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003915/0.1472, allocations: 139.5 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005068/0.1477, allocations: 135.7 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.148, allocations: 167.5 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.1481, allocations: 33.52 kB / 361.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1482, allocations: 67.64 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.1484, allocations: 67.69 kB / 362.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.1484, allocations: 4 kB / 362.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.1485, allocations: 43.92 kB / 362.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.834e-05/0.1486, allocations: 35.89 kB / 362.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.564e-05/0.1487, allocations: 53.58 kB / 362.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.1489, allocations: 155.9 kB / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1489, allocations: 0 / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1489, allocations: 0 / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.1489, allocations: 0 / 362.3 MB, free: 9.703 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007426/0.1497, allocations: 0.4883 MB / 362.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1497, allocations: 8.031 kB / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.875e-05/0.1498, allocations: 23.7 kB / 362.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.1501, allocations: 257.7 kB / 363.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.1502, allocations: 4 kB / 363.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.1502, allocations: 4 kB / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003379/0.1505, allocations: 158.2 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1506, allocations: 3.938 kB / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.1506, allocations: 0 / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.1506, allocations: 0 / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.1507, allocations: 35.98 kB / 363.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005203/0.1512, allocations: 366.3 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.1515, allocations: 111.9 kB / 363.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.062e-05/0.1516, allocations: 42.56 kB / 363.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.1516, allocations: 4 kB / 363.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.1518, allocations: 79.31 kB / 363.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.933e-06/0.1518, allocations: 0 / 363.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003522/0.1521, allocations: 137.4 kB / 364 MB, free: 7.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.334e-05/0.1522, allocations: 136.5 kB / 364.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002913/0.1525, allocations: 268.9 kB / 364.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.1526, allocations: 25.7 kB / 364.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.844e-05/0.1527, allocations: 116.1 kB / 364.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.1527, allocations: 23.73 kB / 364.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-06/0.1527, allocations: 0 / 364.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1529, allocations: 331.1 kB / 364.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.135e-05/0.1529, allocations: 23.98 kB / 364.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.318e-05/0.153, allocations: 65.94 kB / 365 MB, free: 6.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.44e-05/0.1531, allocations: 36.02 kB / 365 MB, free: 6.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1531, allocations: 7.891 kB / 365.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002046/0.1533, allocations: 113.4 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1534, allocations: 8 kB / 365.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-06/0.1534, allocations: 0 / 365.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.1534, allocations: 0 / 365.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-05/0.1535, allocations: 15.94 kB / 365.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.1535, allocations: 0 / 365.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.112e-05/0.1536, allocations: 16.11 kB / 365.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.1536, allocations: 4 kB / 365.2 MB, free: 6.523 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 ($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.0001386/0.1537, allocations: 145.8 kB / 365.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.12e-05/0.1538, allocations: 73.3 kB / 365.4 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.1539, allocations: 21.7 kB / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1539, allocations: 4 kB / 365.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1539, allocations: 0 / 365.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1539, allocations: 4.062 kB / 365.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.1541, allocations: 229.6 kB / 365.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1541, allocations: 320 / 365.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.971e-05/0.1542, allocations: 11.95 kB / 365.7 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.1542, allocations: 4 kB / 365.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.1542, allocations: 0 / 365.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1542, allocations: 0 / 365.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.1542, allocations: 7.984 kB / 365.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.1545, allocations: 154.5 kB / 365.8 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.433e-05/0.1546, allocations: 108.8 kB / 366 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.444e-05/0.1546, allocations: 11.95 kB / 366 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.333e-05/0.1547, allocations: 4 kB / 366 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.1547, allocations: 7.984 kB / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.1548, allocations: 4 kB / 366 MB, free: 5.641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001968/0.155, allocations: 200.5 kB / 366.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.155, allocations: 4 kB / 366.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002585/0.1552, allocations: 24 kB / 366.2 MB, free: 5.414 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 (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.001016/0.1563, allocations: 424.1 kB / 366.6 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.1565, allocations: 63.91 kB / 366.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1565, allocations: 0 / 366.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.799e-05/0.1566, allocations: 24.25 kB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.157, allocations: 61.45 kB / 366.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005947/0.1576, allocations: 344 kB / 367.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.1579, allocations: 0.7283 MB / 367.8 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.392e-05/0.158, allocations: 25.52 kB / 367.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.45e-05/0.158, allocations: 19.44 kB / 367.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1581, allocations: 0 / 367.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of Templates: time 0.005925/0.164, allocations: 2.292 MB / 370.2 MB, free: 1.547 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches