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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001456/0.001457, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 108.8 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2548, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003224/0.258, allocations: 1.968 MB / 409 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.2598, allocations: 1.196 MB / 410.2 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.2599, allocations: 3.938 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000597/0.2606, allocations: 151.6 kB / 410.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003651/0.2609, allocations: 142.5 kB / 410.5 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.2615, allocations: 180.9 kB / 410.7 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002292/0.2617, allocations: 187.5 kB / 410.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.2619, allocations: 31.84 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.262, allocations: 71.64 kB / 411 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.2621, allocations: 67.69 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.2621, allocations: 4 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.2623, allocations: 51.86 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.786e-05/0.2624, allocations: 43.89 kB / 411.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.243e-05/0.2624, allocations: 67.48 kB / 411.2 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.2627, allocations: 204.8 kB / 411.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2627, allocations: 0 / 411.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2627, allocations: 0 / 411.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2628, allocations: 0 / 411.4 MB, free: 23.46 MB / 298.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.0007232/0.2635, allocations: 0.5156 MB / 411.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2635, allocations: 8.875 kB / 411.9 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.2636, allocations: 20.66 kB / 411.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2639, allocations: 270.8 kB / 412.2 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.2639, allocations: 4.375 kB / 412.2 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2639, allocations: 8.125 kB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.2642, allocations: 146.7 kB / 412.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2642, allocations: 3.938 kB / 412.4 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.2642, allocations: 7.984 kB / 412.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2642, allocations: 4 kB / 412.4 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.33e-05/0.2643, allocations: 27.98 kB / 412.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.2648, allocations: 366.3 kB / 412.8 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.2649, allocations: 107.9 kB / 412.9 MB, free: 21.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.727e-05/0.265, allocations: 46.56 kB / 412.9 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.265, allocations: 4 kB / 412.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.2652, allocations: 79.3 kB / 413 MB, free: 21.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.2652, allocations: 0 / 413 MB, free: 21.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003121/0.2655, allocations: 141.4 kB / 413.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.2656, allocations: 132.8 kB / 413.3 MB, free: 21.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.2658, allocations: 280.9 kB / 413.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.2658, allocations: 25.7 kB / 413.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.367e-05/0.2659, allocations: 116.1 kB / 413.7 MB, free: 20.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.2659, allocations: 23.73 kB / 413.7 MB, free: 20.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.2659, allocations: 33.66 kB / 413.7 MB, free: 20.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.023e-05/0.266, allocations: 330.8 kB / 414.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.492e-05/0.2661, allocations: 23.92 kB / 414.1 MB, free: 20.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.556e-05/0.2661, allocations: 74 kB / 414.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.924e-05/0.2662, allocations: 76.19 kB / 414.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2662, allocations: 4 kB / 414.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00016/0.2664, allocations: 113.4 kB / 414.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2664, allocations: 10.95 kB / 414.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.2664, allocations: 0 / 414.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2665, allocations: 4 kB / 414.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.278e-05/0.2665, allocations: 8 kB / 414.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2666, allocations: 4 kB / 414.4 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.601e-05/0.2666, allocations: 19.95 kB / 414.4 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.2666, allocations: 8 kB / 414.4 MB, free: 20.12 MB / 298.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 ($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 8.87e-05/0.2667, allocations: 151.2 kB / 414.5 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.987e-05/0.2668, allocations: 57.52 kB / 414.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.2669, allocations: 25.7 kB / 414.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2669, allocations: 0 / 414.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2669, allocations: 4 kB / 414.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.2669, allocations: 3.938 kB / 414.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.267, allocations: 229.7 kB / 414.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.267, allocations: 320 / 414.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.416e-05/0.2671, allocations: 15.94 kB / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2671, allocations: 0 / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.2671, allocations: 0 / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2671, allocations: 4 kB / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2671, allocations: 0 / 414.9 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003716/0.2675, allocations: 0.7579 MB / 415.6 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.601e-05/0.2675, allocations: 116.8 kB / 415.7 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.2676, allocations: 3.938 kB / 415.7 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.564e-05/0.2676, allocations: 7.938 kB / 415.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.2677, allocations: 11.98 kB / 415.8 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.2677, allocations: 4 kB / 415.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.2678, allocations: 196.5 kB / 416 MB, free: 18.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2678, allocations: 4 kB / 416 MB, free: 18.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003253/0.2682, allocations: 39.91 kB / 416 MB, free: 18.36 MB / 298.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.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.0008446/0.269, allocations: 407.4 kB / 416.4 MB, free: 18.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001669/0.2692, allocations: 67.91 kB / 416.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2692, allocations: 0 / 416.5 MB, free: 18.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.941e-05/0.2693, allocations: 28.19 kB / 416.5 MB, free: 18.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.2696, allocations: 56.98 kB / 416.6 MB, free: 17.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004991/0.2701, allocations: 489.4 kB / 417 MB, free: 17.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.2703, allocations: 0.7361 MB / 417.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.444e-05/0.2704, allocations: 25.52 kB / 417.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.2704, allocations: 23.42 kB / 417.8 MB, free: 16.61 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2704, allocations: 0 / 417.8 MB, free: 16.61 MB / 298.7 MB Notification: Performance of Templates: time 0.004526/0.275, allocations: 2.428 MB / 420.2 MB, free: 14.21 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches