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.001227/0.001227, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001146/0.001146, allocations: 195.9 kB / 18 MB, free: 4.965 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.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001586, allocations: 51.86 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003338/0.2708, allocations: 1.907 MB / 402.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.2726, allocations: 1.169 MB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2727, allocations: 4 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002819/0.273, allocations: 63.67 kB / 403.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.2733, allocations: 91.59 kB / 403.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006554/0.2739, allocations: 264.4 kB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.2741, allocations: 183.5 kB / 403.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.2743, allocations: 33.55 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.2744, allocations: 79.69 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.2745, allocations: 87.55 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.2745, allocations: 8 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.2747, allocations: 71.89 kB / 404.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.865e-05/0.2748, allocations: 47.84 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.563e-05/0.2749, allocations: 91.39 kB / 404.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.2752, allocations: 241.9 kB / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.2752, allocations: 0 / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2752, allocations: 4 kB / 404.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.2752, allocations: 0 / 404.5 MB, free: 4.508 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.000701/0.2759, allocations: 0.5464 MB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.276, allocations: 15.89 kB / 405.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.114e-05/0.276, allocations: 34.75 kB / 405.1 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.2761, allocations: 24.8 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.2765, allocations: 307.7 kB / 405.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.2765, allocations: 8.375 kB / 405.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.2765, allocations: 7.938 kB / 405.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.2769, allocations: 188.3 kB / 405.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2769, allocations: 3.938 kB / 405.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.2769, allocations: 0 / 405.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2769, allocations: 4 kB / 405.7 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.277, allocations: 39.97 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.2775, allocations: 395.2 kB / 406.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.2778, allocations: 146.5 kB / 406.2 MB, free: 2.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.671e-05/0.2779, allocations: 59.36 kB / 406.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.2779, allocations: 4 kB / 406.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.2781, allocations: 83.38 kB / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.2781, allocations: 0 / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003945/0.2785, allocations: 169.6 kB / 406.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.2786, allocations: 195.8 kB / 406.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.279, allocations: 335 kB / 407.1 MB, free: 1.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.279, allocations: 29.7 kB / 407.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.2791, allocations: 132.4 kB / 407.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.2791, allocations: 23.89 kB / 407.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.2792, allocations: 33.7 kB / 407.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2793, allocations: 330.8 kB / 407.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.417e-05/0.2794, allocations: 28.05 kB / 407.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.2795, allocations: 108.6 kB / 407.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.2797, allocations: 101.9 kB / 407.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2797, allocations: 0 / 407.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002467/0.2799, allocations: 141.4 kB / 408 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.28, allocations: 4 kB / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.28, allocations: 7.938 kB / 408 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.28, allocations: 0 / 408 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2801, allocations: 36.05 kB / 408 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2801, allocations: 0 / 408 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.414e-05/0.2802, allocations: 15.89 kB / 408 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.2802, allocations: 11.98 kB / 408.1 MB, free: 0.6016 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.0001377/0.2804, allocations: 150.4 kB / 408.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.2805, allocations: 77.48 kB / 408.3 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.307e-05/0.2806, allocations: 33.64 kB / 408.3 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.2806, allocations: 8.094 kB / 408.3 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2806, allocations: 0 / 408.3 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.2806, allocations: 3.938 kB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.2808, allocations: 245.5 kB / 408.6 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2808, allocations: 0 / 408.6 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.273e-05/0.2809, allocations: 15.98 kB / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2809, allocations: 0 / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.2809, allocations: 4 kB / 408.6 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2809, allocations: 4.062 kB / 408.6 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-05/0.2809, allocations: 4.094 kB / 408.6 MB, free: 16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.2812, allocations: 199.2 kB / 408.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.2813, allocations: 112.9 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.2814, allocations: 8 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.005e-05/0.2815, allocations: 4 kB / 408.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.17e-05/0.2815, allocations: 15.92 kB / 408.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.2816, allocations: 8 kB / 408.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002204/0.2818, allocations: 245.9 kB / 409.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2818, allocations: 0 / 409.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002626/0.2821, allocations: 35.94 kB / 409.2 MB, free: 15.33 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.001355/0.2834, allocations: 1.042 MB / 410.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002309/0.2837, allocations: 87.83 kB / 410.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2837, allocations: 0 / 410.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.111e-05/0.2838, allocations: 32.36 kB / 410.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.2842, allocations: 87.64 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.002287/0.2865, allocations: 2.278 MB / 412.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.2868, allocations: 0.7552 MB / 413.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.484e-05/0.2869, allocations: 25.55 kB / 413.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.043e-05/0.287, allocations: 59.41 kB / 413.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.287, allocations: 0 / 413.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02366/0.3106, allocations: 5.577 MB / 419.1 MB, free: 5.512 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/7.991, allocations: 9.406 kB / 419.1 MB, free: 5.512 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