Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.000991/0.0009909, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.332/1.332, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2553, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003682/0.2591, allocations: 1.876 MB / 402.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.261, allocations: 1.141 MB / 403.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001737/0.2612, allocations: 3.938 kB / 403.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003393/0.2616, allocations: 63.72 kB / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.2619, allocations: 99.58 kB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008104/0.2627, allocations: 253.1 kB / 403.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002568/0.263, allocations: 167.5 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.2631, allocations: 37.52 kB / 403.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.2632, allocations: 71.7 kB / 403.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.2634, allocations: 75.69 kB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.2634, allocations: 8 kB / 404 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.2636, allocations: 75.88 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.686e-05/0.2637, allocations: 47.84 kB / 404.1 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.505e-05/0.2638, allocations: 75.47 kB / 404.2 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004268/0.2642, allocations: 238 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2642, allocations: 3.938 kB / 404.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2642, allocations: 0 / 404.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2643, allocations: 0 / 404.4 MB, free: 4.598 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.0008493/0.2651, allocations: 0.5349 MB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.2652, allocations: 12.03 kB / 405 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.2652, allocations: 38.73 kB / 405 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.011e-05/0.2653, allocations: 24.8 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.2658, allocations: 291.8 kB / 405.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.2658, allocations: 8.375 kB / 405.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.2658, allocations: 7.938 kB / 405.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.2662, allocations: 163.5 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.2662, allocations: 0 / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.2663, allocations: 0 / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2663, allocations: 4 kB / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.2664, allocations: 39.91 kB / 405.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.2669, allocations: 394.3 kB / 405.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.2672, allocations: 111.9 kB / 406 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.156e-05/0.2673, allocations: 50.5 kB / 406.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.2673, allocations: 7.984 kB / 406.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.2675, allocations: 75.39 kB / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.833e-06/0.2675, allocations: 0 / 406.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004007/0.2679, allocations: 149.4 kB / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.2681, allocations: 170.4 kB / 406.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.2684, allocations: 326.6 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.2685, allocations: 29.7 kB / 406.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.72e-05/0.2685, allocations: 132 kB / 407 MB, free: 1.773 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.2686, allocations: 15.91 kB / 407 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.2686, allocations: 33.66 kB / 407 MB, free: 1.719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2688, allocations: 330.8 kB / 407.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.852e-05/0.2689, allocations: 23.98 kB / 407.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001149/0.269, allocations: 86.84 kB / 407.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.2692, allocations: 84.22 kB / 407.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2692, allocations: 0 / 407.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002458/0.2694, allocations: 121.5 kB / 407.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2694, allocations: 4 kB / 407.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.2695, allocations: 7.984 kB / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2695, allocations: 0 / 407.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.2696, allocations: 19.94 kB / 407.7 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2696, allocations: 128 / 407.7 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.358e-05/0.2697, allocations: 27.81 kB / 407.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.2697, allocations: 4.047 kB / 407.7 MB, free: 0.9688 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,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.0001356/0.2698, allocations: 150.1 kB / 407.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.27, allocations: 69.48 kB / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.061e-05/0.27, allocations: 29.7 kB / 408 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.2701, allocations: 0 / 408 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.2701, allocations: 4 kB / 408 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2701, allocations: 12 kB / 408 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.2703, allocations: 237.6 kB / 408.2 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2703, allocations: 0 / 408.2 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.646e-05/0.2704, allocations: 11.98 kB / 408.2 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.2704, allocations: 0 / 408.2 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.2704, allocations: 7.938 kB / 408.2 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.2704, allocations: 3.938 kB / 408.2 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2705, allocations: 3.938 kB / 408.2 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.2707, allocations: 178.5 kB / 408.4 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.2708, allocations: 116.9 kB / 408.5 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.2709, allocations: 8 kB / 408.5 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.277e-05/0.271, allocations: 0 / 408.5 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.271, allocations: 11.92 kB / 408.5 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.2711, allocations: 8 kB / 408.5 MB, free: 24 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002404/0.2713, allocations: 237.9 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2713, allocations: 4 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.2716, allocations: 35.98 kB / 408.8 MB, free: 15.75 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.001524/0.2731, allocations: 1.019 MB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002504/0.2734, allocations: 71.91 kB / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2734, allocations: 0 / 409.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.767e-05/0.2735, allocations: 35.92 kB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.274, allocations: 57.8 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.2764, allocations: 2.204 MB / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.2768, allocations: 0.7397 MB / 412.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.2769, allocations: 25.55 kB / 413 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.846e-05/0.277, allocations: 59.41 kB / 413 MB, free: 11.53 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.277, allocations: 3.938 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.3007, allocations: 5.267 MB / 418.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.932, allocations: 18.88 kB / 418.3 MB, free: 6.395 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches