Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 114.4 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 204 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.4/1.4, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.88 kB / 359.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.255, allocations: 50.54 MB / 410.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003262/0.2583, allocations: 1.909 MB / 412.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001969/0.2602, allocations: 1.208 MB / 413.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.2603, allocations: 11.94 kB / 413.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00053/0.2609, allocations: 145.7 kB / 413.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003704/0.2612, allocations: 151.4 kB / 413.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004305/0.2617, allocations: 171.4 kB / 413.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.2619, allocations: 191.5 kB / 414 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.262, allocations: 25.55 kB / 414 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.2621, allocations: 83.62 kB / 414.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.2622, allocations: 67.64 kB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.2622, allocations: 8 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.2624, allocations: 59.95 kB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.513e-05/0.2624, allocations: 39.84 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.778e-05/0.2625, allocations: 71.48 kB / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.2628, allocations: 215.1 kB / 414.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2628, allocations: 0 / 414.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2628, allocations: 0 / 414.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.2628, allocations: 7.938 kB / 414.5 MB, free: 13.05 MB / 334.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.000747/0.2636, allocations: 0.5155 MB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.2636, allocations: 12.02 kB / 415.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.375e-05/0.2637, allocations: 24.8 kB / 415.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.264, allocations: 274.9 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.264, allocations: 8.375 kB / 415.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.2641, allocations: 12.12 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003018/0.2644, allocations: 146.4 kB / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.2644, allocations: 0 / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.2644, allocations: 0 / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.2644, allocations: 0 / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.2645, allocations: 43.92 kB / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.265, allocations: 362.3 kB / 415.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.2652, allocations: 111.8 kB / 416 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.168e-05/0.2653, allocations: 42.56 kB / 416.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.2653, allocations: 4 kB / 416.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.2654, allocations: 79.39 kB / 416.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.2654, allocations: 0 / 416.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003527/0.2658, allocations: 145.4 kB / 416.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.181e-05/0.2659, allocations: 132.5 kB / 416.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.2662, allocations: 269 kB / 416.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.2662, allocations: 33.7 kB / 416.7 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.2663, allocations: 120.4 kB / 416.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.2663, allocations: 11.98 kB / 416.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.381e-05/0.2664, allocations: 33.66 kB / 416.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.2665, allocations: 330.8 kB / 417.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.508e-05/0.2666, allocations: 23.98 kB / 417.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.4e-05/0.2667, allocations: 69.98 kB / 417.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.2668, allocations: 84.16 kB / 417.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2668, allocations: 0 / 417.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002077/0.267, allocations: 113.6 kB / 417.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.267, allocations: 8 kB / 417.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.267, allocations: 0 / 417.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.267, allocations: 4 kB / 417.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.407e-05/0.2671, allocations: 15.92 kB / 417.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2671, allocations: 4 kB / 417.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.746e-05/0.2672, allocations: 15.83 kB / 417.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.2672, allocations: 4 kB / 417.5 MB, free: 9.719 MB / 334.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.0001293/0.2674, allocations: 153.8 kB / 417.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.2674, allocations: 61.53 kB / 417.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.2675, allocations: 21.7 kB / 417.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2675, allocations: 7.938 kB / 417.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2675, allocations: 4.25 kB / 417.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2675, allocations: 3.938 kB / 417.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.2677, allocations: 229.5 kB / 418 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2677, allocations: 4 kB / 418 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.732e-05/0.2677, allocations: 7.984 kB / 418 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.2677, allocations: 4 kB / 418 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.2678, allocations: 4.062 kB / 418 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2678, allocations: 3.938 kB / 418 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.2678, allocations: 7.984 kB / 418 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.268, allocations: 150.6 kB / 418.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.674e-05/0.2681, allocations: 112.9 kB / 418.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.2681, allocations: 12 kB / 418.3 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.916e-05/0.2682, allocations: 4 kB / 418.3 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.681e-05/0.2682, allocations: 7.984 kB / 418.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2683, allocations: 3.938 kB / 418.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001967/0.2685, allocations: 204.5 kB / 418.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2685, allocations: 0 / 418.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.2687, allocations: 27.94 kB / 418.5 MB, free: 8.594 MB / 334.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.001417/0.2701, allocations: 429.6 kB / 419 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.2703, allocations: 67.84 kB / 419 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2703, allocations: 0 / 419 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.611e-05/0.2704, allocations: 16 kB / 419 MB, free: 8.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.2708, allocations: 69.59 kB / 419.1 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005483/0.2713, allocations: 316.9 kB / 419.4 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.2717, allocations: 0.7319 MB / 420.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.414e-05/0.2717, allocations: 17.55 kB / 420.2 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.442e-05/0.2718, allocations: 23.44 kB / 420.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2718, allocations: 4 kB / 420.2 MB, free: 7.031 MB / 334.1 MB Notification: Performance of Templates: time 0.006116/0.2779, allocations: 2.505 MB / 422.7 MB, free: 4.555 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches