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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 175.4 kB / 8.345 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 99.47 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.676e-05/1.68e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09641, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3221/0.4185, allocations: 80.31 MB / 467.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4188, allocations: 83.95 kB / 467.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01639/0.4352, allocations: 5.92 MB / 473.8 MB, free: 8.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4352, allocations: 0 / 473.8 MB, free: 8.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.4352, allocations: 4 kB / 473.8 MB, free: 8.539 MB / 346.7 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.0005596/0.4358, allocations: 476.2 kB / 474.3 MB, free: 8.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.4359, allocations: 15.97 kB / 474.3 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.436, allocations: 15.81 kB / 474.3 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.4363, allocations: 261.6 kB / 474.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.4364, allocations: 4 kB / 474.5 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.4364, allocations: 4 kB / 474.5 MB, free: 7.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001051/0.4365, allocations: 35.98 kB / 474.6 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.4368, allocations: 135.9 kB / 474.7 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.4368, allocations: 3.938 kB / 474.7 MB, free: 7.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.4369, allocations: 3.953 kB / 474.7 MB, free: 7.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.4369, allocations: 3.984 kB / 474.7 MB, free: 7.488 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000461/0.4373, allocations: 335.1 kB / 475.1 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.4375, allocations: 95.91 kB / 475.1 MB, free: 6.996 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.742e-05/0.4376, allocations: 46.7 kB / 475.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.4376, allocations: 0 / 475.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001191/0.4377, allocations: 75.5 kB / 475.3 MB, free: 6.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.4377, allocations: 0.75 kB / 475.3 MB, free: 6.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002494/0.438, allocations: 109.5 kB / 475.4 MB, free: 6.742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.035e-05/0.4381, allocations: 136.5 kB / 475.5 MB, free: 6.578 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002466/0.4383, allocations: 228.4 kB / 475.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.4384, allocations: 33.69 kB / 475.8 MB, free: 6.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.368e-05/0.4384, allocations: 116.1 kB / 475.9 MB, free: 6.191 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.4385, allocations: 7.891 kB / 475.9 MB, free: 6.184 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-06/0.4385, allocations: 0 / 475.9 MB, free: 6.184 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4386, allocations: 334.8 kB / 476.2 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.98e-05/0.4387, allocations: 23.98 kB / 476.2 MB, free: 5.824 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.114e-05/0.4387, allocations: 70 kB / 476.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.825e-05/0.4388, allocations: 27.92 kB / 476.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4388, allocations: 4.031 kB / 476.3 MB, free: 5.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001559/0.439, allocations: 101.5 kB / 476.4 MB, free: 5.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.439, allocations: 8 kB / 476.4 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.439, allocations: 0 / 476.4 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.439, allocations: 7.953 kB / 476.4 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.69e-05/0.4391, allocations: 8 kB / 476.5 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.4391, allocations: 15.86 kB / 476.5 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.969e-05/0.4392, allocations: 8.062 kB / 476.5 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.4392, allocations: 12 kB / 476.5 MB, free: 5.539 MB / 346.7 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 () * 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 8.144e-05/0.4393, allocations: 105 kB / 476.6 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.4394, allocations: 65.34 kB / 476.7 MB, free: 5.359 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.4396, allocations: 103.5 kB / 476.8 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.4396, allocations: 3.953 kB / 476.8 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4396, allocations: 4 kB / 476.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4396, allocations: 3.984 kB / 476.8 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.4398, allocations: 202.2 kB / 477 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4398, allocations: 0 / 477 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.524e-05/0.4399, allocations: 7.984 kB / 477 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.4399, allocations: 4 kB / 477 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.4399, allocations: 0 / 477 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.4399, allocations: 7.938 kB / 477 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4399, allocations: 0 / 477 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002099/0.4402, allocations: 170 kB / 477.2 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.4403, allocations: 116.8 kB / 477.3 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.4403, allocations: 11.95 kB / 477.3 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.918e-05/0.4404, allocations: 7.984 kB / 477.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.4404, allocations: 4 kB / 477.3 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.4405, allocations: 3.984 kB / 477.3 MB, free: 4.625 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.4406, allocations: 188.5 kB / 477.5 MB, free: 4.438 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4406, allocations: 0 / 477.5 MB, free: 4.438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.4409, allocations: 35.92 kB / 477.5 MB, free: 4.402 MB / 346.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0007991/0.4417, allocations: 357.5 kB / 477.9 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001685/0.4419, allocations: 64.11 kB / 477.9 MB, free: 4.066 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4419, allocations: 0 / 477.9 MB, free: 4.066 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.105e-05/0.442, allocations: 31.92 kB / 478 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.4423, allocations: 52.36 kB / 478 MB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004274/0.4427, allocations: 224.1 kB / 478.2 MB, free: 3.734 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.443, allocations: 0.7361 MB / 479 MB, free: 2.973 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.83e-05/0.4431, allocations: 25.45 kB / 479 MB, free: 2.945 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.4432, allocations: 19.42 kB / 479 MB, free: 2.926 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4432, allocations: 0 / 479 MB, free: 2.926 MB / 346.7 MB Notification: Performance of Templates: time 0.005121/0.4483, allocations: 2.229 MB / 481.2 MB, free: 0.7188 MB / 346.7 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