Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 118.8 kB / 17.79 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.001392/0.001392, allocations: 198 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.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 60.12 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2646, allocations: 50.55 MB / 408.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004621/0.2693, allocations: 1.921 MB / 410.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003016/0.2723, allocations: 1.293 MB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.2725, allocations: 7.938 kB / 412 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003643/0.2729, allocations: 67.67 kB / 412 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004755/0.2734, allocations: 139.4 kB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000825/0.2742, allocations: 223.3 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.2746, allocations: 183.5 kB / 412.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.2747, allocations: 33.55 kB / 412.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.2749, allocations: 79.69 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.275, allocations: 87.55 kB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.2751, allocations: 8 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.2753, allocations: 71.91 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.2754, allocations: 55.81 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.2755, allocations: 79.42 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004696/0.276, allocations: 253.9 kB / 413.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.276, allocations: 4 kB / 413.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.276, allocations: 0 / 413.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2761, allocations: 0 / 413.2 MB, free: 13.19 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009968/0.2771, allocations: 0.5464 MB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2771, allocations: 8.031 kB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.2772, allocations: 42.73 kB / 413.8 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.932e-05/0.2773, allocations: 28.75 kB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.2778, allocations: 303.7 kB / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.2779, allocations: 4.375 kB / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.2779, allocations: 11.94 kB / 414.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.2785, allocations: 176.4 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2785, allocations: 0 / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.2785, allocations: 0 / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2786, allocations: 4 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.2787, allocations: 43.91 kB / 414.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006145/0.2794, allocations: 470.5 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.2797, allocations: 154.4 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.2798, allocations: 59.42 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.2798, allocations: 0 / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.28, allocations: 105 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.2801, allocations: 0 / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004306/0.2805, allocations: 169.4 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.2806, allocations: 187.9 kB / 415.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.281, allocations: 338.9 kB / 415.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.2811, allocations: 34.08 kB / 415.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.2812, allocations: 132.3 kB / 416 MB, free: 10.08 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.2812, allocations: 15.91 kB / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.2813, allocations: 37.7 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2814, allocations: 334.8 kB / 416.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.685e-05/0.2815, allocations: 23.98 kB / 416.4 MB, free: 9.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.2817, allocations: 99.7 kB / 416.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.2819, allocations: 97.02 kB / 416.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2819, allocations: 8 kB / 416.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002699/0.2822, allocations: 141.3 kB / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.2822, allocations: 4 kB / 416.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2822, allocations: 4 kB / 416.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.2822, allocations: 0 / 416.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.2823, allocations: 27.92 kB / 416.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.2823, allocations: 3.938 kB / 416.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.539e-05/0.2824, allocations: 19.83 kB / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.2825, allocations: 12.14 kB / 416.8 MB, free: 9.203 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.y,hold1.u,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.0001511/0.2826, allocations: 161.8 kB / 417 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.2827, allocations: 69.5 kB / 417 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.552e-05/0.2828, allocations: 25.73 kB / 417.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2828, allocations: 4.312 kB / 417.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2828, allocations: 0 / 417.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.2828, allocations: 3.938 kB / 417.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.2831, allocations: 253.6 kB / 417.3 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2831, allocations: 4.062 kB / 417.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-05/0.2832, allocations: 15.98 kB / 417.3 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.2832, allocations: 4 kB / 417.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.2832, allocations: 0 / 417.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.2832, allocations: 7.984 kB / 417.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2832, allocations: 3.938 kB / 417.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000304/0.2835, allocations: 187.4 kB / 417.5 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.2837, allocations: 120.9 kB / 417.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.2837, allocations: 3.984 kB / 417.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.257e-05/0.2838, allocations: 8 kB / 417.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.2838, allocations: 11.92 kB / 417.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.2839, allocations: 8 kB / 417.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002539/0.2841, allocations: 249.9 kB / 417.9 MB, free: 7.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2841, allocations: 4 kB / 417.9 MB, free: 7.973 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.2844, allocations: 32 kB / 418 MB, free: 7.941 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,hold1.y,hold1.u,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 (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.00202/0.2864, allocations: 1.034 MB / 419 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.2867, allocations: 83.84 kB / 419.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2867, allocations: 0 / 419.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.2868, allocations: 39.97 kB / 419.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.2873, allocations: 88.16 kB / 419.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.29, allocations: 2.285 MB / 421.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.2904, allocations: 0.7515 MB / 422.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.48e-05/0.2905, allocations: 21.55 kB / 422.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.2906, allocations: 63.41 kB / 422.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2906, allocations: 0 / 422.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.3192, allocations: 5.474 MB / 427.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/8.541, allocations: 11.92 kB / 427.8 MB, free: 14.16 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches