Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001084/0.001085, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2482, allocations: 50.54 MB / 408.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004035/0.2523, allocations: 1.89 MB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.255, allocations: 1.282 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.2552, allocations: 4 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.2556, allocations: 71.66 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004149/0.2561, allocations: 139.4 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007275/0.2568, allocations: 223.3 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.2571, allocations: 183.5 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.2573, allocations: 25.55 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.2574, allocations: 79.69 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.2576, allocations: 79.62 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.2576, allocations: 8 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.2578, allocations: 71.94 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.2579, allocations: 47.84 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.258, allocations: 79.42 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.2585, allocations: 245.9 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.2585, allocations: 7.984 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2585, allocations: 0 / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.2585, allocations: 0 / 413.2 MB, free: 13.09 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.0008734/0.2594, allocations: 0.5387 MB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.2594, allocations: 12.03 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.445e-05/0.2595, allocations: 34.75 kB / 413.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.503e-05/0.2596, allocations: 28.78 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004421/0.26, allocations: 299.8 kB / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.26, allocations: 384 / 414.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.2601, allocations: 11.94 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.2604, allocations: 159 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2604, allocations: 4 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.2604, allocations: 0 / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.2605, allocations: 0 / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.2606, allocations: 39.91 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005175/0.2611, allocations: 390.3 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.2614, allocations: 123.8 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.73e-05/0.2615, allocations: 50.56 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.2615, allocations: 7.984 kB / 414.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.2617, allocations: 75.33 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.764e-06/0.2617, allocations: 3.938 kB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004039/0.2621, allocations: 157.4 kB / 415.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.451e-05/0.2622, allocations: 162.5 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.2626, allocations: 342.6 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.2626, allocations: 25.7 kB / 415.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.545e-05/0.2627, allocations: 132.1 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.41e-05/0.2627, allocations: 11.91 kB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.2628, allocations: 33.7 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2629, allocations: 334.8 kB / 416.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.065e-05/0.263, allocations: 23.98 kB / 416.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.2631, allocations: 86.8 kB / 416.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.2632, allocations: 88.2 kB / 416.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2633, allocations: 0 / 416.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002307/0.2635, allocations: 121.5 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.2635, allocations: 7.938 kB / 416.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2635, allocations: 4 kB / 416.4 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.2635, allocations: 0 / 416.4 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.2637, allocations: 19.98 kB / 416.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.2637, allocations: 0 / 416.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.839e-05/0.2638, allocations: 20 kB / 416.4 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.2638, allocations: 4 kB / 416.5 MB, free: 9.434 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,table.y,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.0001237/0.2639, allocations: 162 kB / 416.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.244e-05/0.264, allocations: 69.52 kB / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.346e-05/0.2641, allocations: 29.7 kB / 416.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2641, allocations: 3.938 kB / 416.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2641, allocations: 4 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2641, allocations: 3.938 kB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001966/0.2643, allocations: 249.7 kB / 417 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2643, allocations: 0 / 417 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.587e-05/0.2644, allocations: 19.92 kB / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2644, allocations: 0 / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.2644, allocations: 0 / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2644, allocations: 4 kB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2644, allocations: 3.984 kB / 417 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.2647, allocations: 174.5 kB / 417.2 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.798e-05/0.2648, allocations: 113 kB / 417.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.2648, allocations: 3.984 kB / 417.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.755e-05/0.2649, allocations: 4 kB / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.265, allocations: 15.92 kB / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.265, allocations: 4 kB / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.2652, allocations: 249.9 kB / 417.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2652, allocations: 0 / 417.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.2655, allocations: 39.92 kB / 417.6 MB, free: 8.195 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,table.y,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.001376/0.2669, allocations: 1.009 MB / 418.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002153/0.2671, allocations: 79.84 kB / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2671, allocations: 0 / 418.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.234e-05/0.2672, allocations: 27.98 kB / 418.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.2676, allocations: 82.03 kB / 418.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.2699, allocations: 2.22 MB / 421 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.2702, allocations: 0.7397 MB / 421.7 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.441e-05/0.2703, allocations: 29.77 kB / 421.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.2704, allocations: 67.42 kB / 421.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2704, allocations: 0 / 421.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.2916, allocations: 5.354 MB / 427.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/8.021, allocations: 7.25 kB / 427.2 MB, free: 14.68 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches