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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 199.8 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.88 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2613, allocations: 50.53 MB / 408.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003553/0.2649, allocations: 1.901 MB / 410.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.2671, allocations: 1.204 MB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.2673, allocations: 0 / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007091/0.2681, allocations: 159.5 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005753/0.2687, allocations: 155.4 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006531/0.2693, allocations: 166.9 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.2697, allocations: 191.5 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.2698, allocations: 41.48 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.27, allocations: 75.69 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.2701, allocations: 71.69 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.2701, allocations: 8 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.2703, allocations: 55.91 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.2704, allocations: 47.83 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.315e-05/0.2705, allocations: 71.48 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.2709, allocations: 218.2 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2709, allocations: 4 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2709, allocations: 4 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2709, allocations: 0 / 413.1 MB, free: 13.21 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.0008222/0.2717, allocations: 0.5154 MB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.2718, allocations: 12.03 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.282e-05/0.2719, allocations: 34.73 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.536e-05/0.2719, allocations: 24.8 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.2724, allocations: 275 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.2724, allocations: 4.375 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.2724, allocations: 11.94 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003542/0.2728, allocations: 138.7 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.2728, allocations: 0 / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.2728, allocations: 11.94 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2728, allocations: 0 / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.273, allocations: 43.89 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005792/0.2736, allocations: 358.4 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.2738, allocations: 107.9 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.161e-05/0.2739, allocations: 42.56 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.2739, allocations: 8.062 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.2741, allocations: 83.33 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.074e-06/0.2741, allocations: 3.938 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004231/0.2745, allocations: 141.5 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.2747, allocations: 140.4 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.275, allocations: 273.2 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.275, allocations: 33.7 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.831e-05/0.2751, allocations: 112.1 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.2751, allocations: 19.89 kB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.918e-05/0.2752, allocations: 29.67 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2753, allocations: 330.8 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.131e-05/0.2754, allocations: 20.25 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.911e-05/0.2755, allocations: 69.98 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.2757, allocations: 80.23 kB / 416 MB, free: 9.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2757, allocations: 0 / 416 MB, free: 9.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000216/0.2759, allocations: 117.5 kB / 416.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2759, allocations: 10.81 kB / 416.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2759, allocations: 0 / 416.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.276, allocations: 4 kB / 416.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.229e-05/0.2761, allocations: 11.98 kB / 416.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.2761, allocations: 7.938 kB / 416.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.2762, allocations: 15.83 kB / 416.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.2762, allocations: 4 kB / 416.1 MB, free: 9.824 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.0001418/0.2763, allocations: 149.9 kB / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.2764, allocations: 61.53 kB / 416.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.2765, allocations: 29.69 kB / 416.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2765, allocations: 4 kB / 416.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.2765, allocations: 0 / 416.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2765, allocations: 3.938 kB / 416.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.2767, allocations: 225.5 kB / 416.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.2768, allocations: 3.984 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.917e-05/0.2768, allocations: 16 kB / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.2768, allocations: 4 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.2768, allocations: 0 / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2768, allocations: 64 / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.2768, allocations: 8 kB / 416.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.2771, allocations: 162.5 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.103e-05/0.2772, allocations: 105 kB / 416.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.2772, allocations: 4 kB / 416.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.341e-05/0.2773, allocations: 11.98 kB / 416.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.2774, allocations: 11.88 kB / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2774, allocations: 0 / 416.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001991/0.2776, allocations: 204.5 kB / 417.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2776, allocations: 0 / 417.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002556/0.2779, allocations: 31.92 kB / 417.2 MB, free: 8.699 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.001352/0.2792, allocations: 0.9941 MB / 418.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002096/0.2794, allocations: 64.05 kB / 418.2 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.2795, allocations: 4 kB / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.962e-05/0.2795, allocations: 31.86 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.2799, allocations: 85.94 kB / 418.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.2822, allocations: 1.941 MB / 420.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.2825, allocations: 0.728 MB / 421 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.815e-05/0.2826, allocations: 21.55 kB / 421 MB, free: 4.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.374e-05/0.2827, allocations: 43.42 kB / 421.1 MB, free: 4.754 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2827, allocations: 0 / 421.1 MB, free: 4.754 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.307, allocations: 4.685 MB / 425.7 MB, free: 208 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.723/8.03, allocations: 0 / 425.7 MB, free: 208 kB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/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