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.001132/0.001132, allocations: 110.6 kB / 17.06 MB, free: 6.023 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.00126/0.00126, allocations: 191 kB / 17.99 MB, free: 5.109 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.487/1.487, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3352, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003125/0.3383, allocations: 1.88 MB / 402.6 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.34, allocations: 1.064 MB / 403.7 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.3401, allocations: 7.938 kB / 403.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006269/0.3407, allocations: 143.5 kB / 403.8 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.3411, allocations: 119.5 kB / 403.9 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.3416, allocations: 209.3 kB / 404.1 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.3418, allocations: 183.6 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.342, allocations: 33.53 kB / 404.3 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.3421, allocations: 83.56 kB / 404.4 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.3422, allocations: 67.69 kB / 404.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.3422, allocations: 8 kB / 404.5 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.3424, allocations: 51.98 kB / 404.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.3424, allocations: 51.75 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.304e-05/0.3425, allocations: 71.56 kB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002766/0.3428, allocations: 204.4 kB / 404.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3428, allocations: 0 / 404.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3428, allocations: 0 / 404.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.3429, allocations: 0 / 404.9 MB, free: 4.707 MB / 318.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.0007789/0.3436, allocations: 0.504 MB / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3437, allocations: 11.89 kB / 405.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.3438, allocations: 24.59 kB / 405.4 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003457/0.3441, allocations: 266.9 kB / 405.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.3441, allocations: 8.375 kB / 405.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.3442, allocations: 8.125 kB / 405.7 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.3445, allocations: 142.7 kB / 405.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3445, allocations: 0 / 405.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.3446, allocations: 11.88 kB / 405.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3446, allocations: 0 / 405.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.3447, allocations: 31.98 kB / 405.9 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004592/0.3451, allocations: 362.3 kB / 406.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.3454, allocations: 107.9 kB / 406.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.839e-05/0.3454, allocations: 46.56 kB / 406.4 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.3455, allocations: 4 kB / 406.4 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.3456, allocations: 75.23 kB / 406.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.883e-06/0.3457, allocations: 0 / 406.4 MB, free: 2.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003454/0.346, allocations: 137.6 kB / 406.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.3461, allocations: 132.8 kB / 406.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.3463, allocations: 269 kB / 407 MB, free: 2.324 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.3464, allocations: 25.7 kB / 407 MB, free: 2.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.3465, allocations: 120 kB / 407.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.3465, allocations: 15.95 kB / 407.1 MB, free: 2.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/0.3465, allocations: 29.62 kB / 407.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.3467, allocations: 334.8 kB / 407.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.942e-05/0.3467, allocations: 27.98 kB / 407.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.563e-05/0.3468, allocations: 73.94 kB / 407.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.347, allocations: 84.25 kB / 407.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.347, allocations: 0 / 407.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001981/0.3472, allocations: 105.4 kB / 407.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3472, allocations: 11.98 kB / 407.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3472, allocations: 0 / 407.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.3472, allocations: 4 kB / 407.8 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.97e-05/0.3473, allocations: 12 kB / 407.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3473, allocations: 4 kB / 407.8 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.907e-05/0.3474, allocations: 19.98 kB / 407.8 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.3474, allocations: 4 kB / 407.8 MB, free: 1.402 MB / 318.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.000109/0.3475, allocations: 145.8 kB / 408 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.3476, allocations: 57.42 kB / 408 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.231e-05/0.3477, allocations: 33.67 kB / 408.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3477, allocations: 4 kB / 408.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3477, allocations: 0 / 408.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3477, allocations: 3.938 kB / 408.1 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.3479, allocations: 221.7 kB / 408.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3479, allocations: 4 kB / 408.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.963e-05/0.3479, allocations: 11.92 kB / 408.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.3479, allocations: 0 / 408.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.3479, allocations: 0 / 408.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.3479, allocations: 8.062 kB / 408.3 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.348, allocations: 0 / 408.3 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002215/0.3482, allocations: 158.5 kB / 408.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.973e-05/0.3483, allocations: 112.8 kB / 408.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/0.3483, allocations: 4 kB / 408.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.067e-05/0.3484, allocations: 7.984 kB / 408.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.3484, allocations: 4 kB / 408.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.3485, allocations: 11.94 kB / 408.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.3486, allocations: 196.4 kB / 408.8 MB, free: 336 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3486, allocations: 0 / 408.8 MB, free: 336 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.3489, allocations: 35.91 kB / 408.8 MB, free: 300 kB / 318.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.0009457/0.3499, allocations: 420 kB / 409.2 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002248/0.3501, allocations: 71.84 kB / 409.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3501, allocations: 0 / 409.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.983e-05/0.3502, allocations: 24 kB / 409.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.3506, allocations: 65.52 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.3511, allocations: 301.1 kB / 409.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.3514, allocations: 0.7318 MB / 410.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.362e-05/0.3515, allocations: 21.55 kB / 410.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.3515, allocations: 23.42 kB / 410.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3515, allocations: 0 / 410.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of Templates: time 0.006719/0.3583, allocations: 2.468 MB / 412.9 MB, free: 12.32 MB / 334.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