Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.001668/0.001668, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001914/0.001914, allocations: 200 kB / 18.01 MB, free: 5.066 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.479/1.479, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 43.91 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2542, allocations: 49.45 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003545/0.2578, allocations: 1.901 MB / 402.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.2599, allocations: 1.161 MB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.2601, allocations: 7.938 kB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000351/0.2605, allocations: 59.67 kB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.2608, allocations: 99.56 kB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007663/0.2616, allocations: 263.6 kB / 403.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.2619, allocations: 179.5 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.262, allocations: 33.55 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.2621, allocations: 75.64 kB / 404 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.2623, allocations: 87.55 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.2623, allocations: 12 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.2625, allocations: 63.95 kB / 404.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.045e-05/0.2626, allocations: 51.83 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.2627, allocations: 91.34 kB / 404.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004089/0.2631, allocations: 246 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2631, allocations: 0 / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2631, allocations: 0 / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2631, allocations: 0 / 404.5 MB, free: 4.492 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000821/0.264, allocations: 0.5504 MB / 405.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.264, allocations: 8.031 kB / 405.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.545e-05/0.2641, allocations: 42.69 kB / 405.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.242e-05/0.2641, allocations: 24.78 kB / 405.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.2646, allocations: 299.8 kB / 405.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.2646, allocations: 4.375 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/0.2647, allocations: 19.86 kB / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.265, allocations: 180.3 kB / 405.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.2651, allocations: 0 / 405.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.2651, allocations: 4 kB / 405.7 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.2651, allocations: 7.984 kB / 405.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.2652, allocations: 35.92 kB / 405.7 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.2658, allocations: 395.3 kB / 406.1 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.2661, allocations: 146.4 kB / 406.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.2662, allocations: 59.41 kB / 406.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.2663, allocations: 8.062 kB / 406.3 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.2665, allocations: 87.31 kB / 406.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.2665, allocations: 0 / 406.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004509/0.2669, allocations: 165.6 kB / 406.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.2671, allocations: 191.9 kB / 406.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.2675, allocations: 334.6 kB / 407.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.2675, allocations: 30.08 kB / 407.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.2676, allocations: 136.3 kB / 407.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.2676, allocations: 19.84 kB / 407.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.008e-05/0.2677, allocations: 33.7 kB / 407.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2679, allocations: 334.8 kB / 407.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.811e-05/0.268, allocations: 31.98 kB / 407.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.2681, allocations: 111.2 kB / 407.7 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.2683, allocations: 93.94 kB / 407.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.2683, allocations: 4 kB / 407.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002742/0.2686, allocations: 133.4 kB / 408 MB, free: 0.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2686, allocations: 15.86 kB / 408 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.2687, allocations: 7.984 kB / 408 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.2687, allocations: 0 / 408 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.2688, allocations: 24.19 kB / 408 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.2688, allocations: 7.984 kB / 408 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.638e-05/0.2689, allocations: 19.83 kB / 408 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.2689, allocations: 4 kB / 408 MB, free: 0.5898 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001662/0.2691, allocations: 154.3 kB / 408.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.2692, allocations: 81.48 kB / 408.3 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.849e-05/0.2693, allocations: 25.7 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.2693, allocations: 4.094 kB / 408.3 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2693, allocations: 4 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.2693, allocations: 11.92 kB / 408.3 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.2696, allocations: 237.5 kB / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2696, allocations: 0 / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.078e-05/0.2697, allocations: 15.98 kB / 408.6 MB, free: 0 / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.469e-05/0.2697, allocations: 4.047 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.2697, allocations: 4 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.2698, allocations: 8.062 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2698, allocations: 3.938 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003213/0.2701, allocations: 191.2 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.2702, allocations: 116.9 kB / 408.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.2703, allocations: 4 kB / 408.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.586e-05/0.2703, allocations: 7.984 kB / 408.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.2704, allocations: 11.94 kB / 408.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.2704, allocations: 11.98 kB / 408.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002656/0.2707, allocations: 241.9 kB / 409.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2707, allocations: 4 kB / 409.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.271, allocations: 35.92 kB / 409.2 MB, free: 15.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.002069/0.2731, allocations: 1.043 MB / 410.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.2734, allocations: 79.84 kB / 410.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2734, allocations: 0 / 410.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.74e-05/0.2735, allocations: 32.36 kB / 410.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.274, allocations: 91.66 kB / 410.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.2769, allocations: 2.288 MB / 412.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.2773, allocations: 0.7474 MB / 413.5 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.2775, allocations: 29.53 kB / 413.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.2776, allocations: 63.41 kB / 413.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2776, allocations: 0 / 413.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.3071, allocations: 5.575 MB / 419.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.15/8.458, allocations: 8.312 kB / 419.2 MB, free: 5.488 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_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_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches