Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.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.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, 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.001982/0.001982, allocations: 197.2 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.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2477, allocations: 50.55 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003556/0.2513, allocations: 2.424 MB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005035/0.2518, allocations: 254.6 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.2519, allocations: 8 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.2521, allocations: 47.52 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.2523, allocations: 79.27 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.2524, allocations: 51.94 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.2528, allocations: 294.6 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.253, allocations: 97.69 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.2531, allocations: 103.6 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.2533, allocations: 115.5 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.2533, allocations: 24 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.288e-05/0.2534, allocations: 24 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.906e-05/0.2535, allocations: 55.72 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.2536, allocations: 131.4 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003521/0.2539, allocations: 297.7 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.254, allocations: 0 / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.254, allocations: 0 / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.254, allocations: 0 / 412.7 MB, free: 13.54 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008189/0.2548, allocations: 0.5417 MB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.2549, allocations: 16.03 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.431e-05/0.2549, allocations: 62.67 kB / 413.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.586e-05/0.255, allocations: 28.75 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.2553, allocations: 252.7 kB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2554, allocations: 16.94 kB / 413.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.2554, allocations: 28.36 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003913/0.2558, allocations: 244 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.2558, allocations: 11.92 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/0.2559, allocations: 8 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2559, allocations: 4 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.2562, allocations: 163.8 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.2572, allocations: 0.8049 MB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.2578, allocations: 299.6 kB / 415.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.258, allocations: 126.5 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.258, allocations: 4 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.2581, allocations: 42.5 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.653e-06/0.2581, allocations: 0 / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.002748/0.2609, allocations: 1.947 MB / 417.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.375e-05/0.2609, allocations: 110.8 kB / 417.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.2611, allocations: 190.8 kB / 417.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.2612, allocations: 30.64 kB / 417.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.446e-05/0.2613, allocations: 140.9 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.2614, allocations: 166.5 kB / 417.9 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.2615, allocations: 74.12 kB / 418 MB, free: 7.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2617, allocations: 338.8 kB / 418.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2618, allocations: 88.84 kB / 418.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.2621, allocations: 162.5 kB / 418.6 MB, free: 7.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.2624, allocations: 280 kB / 418.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2625, allocations: 4 kB / 418.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005053/0.263, allocations: 349.1 kB / 419.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.263, allocations: 11.88 kB / 419.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.263, allocations: 4 kB / 419.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.263, allocations: 0 / 419.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/0.2634, allocations: 91.84 kB / 419.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2634, allocations: 7.984 kB / 419.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.2635, allocations: 12 kB / 419.3 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.2635, allocations: 12 kB / 419.3 MB, free: 6.359 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * 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.0001598/0.2637, allocations: 157.8 kB / 419.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.071e-05/0.2638, allocations: 35.78 kB / 419.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.927e-05/0.2639, allocations: 41.86 kB / 419.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.2639, allocations: 4 kB / 419.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.2639, allocations: 0 / 419.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2639, allocations: 0 / 419.6 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.2654, allocations: 1.047 MB / 420.6 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.2655, allocations: 4.281 kB / 420.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.2658, allocations: 99.77 kB / 420.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/0.2659, allocations: 4 kB / 420.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.2659, allocations: 16 kB / 420.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.2659, allocations: 4 kB / 420.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2659, allocations: 4 kB / 420.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000803/0.2667, allocations: 0.725 MB / 421.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.932e-05/0.2668, allocations: 105 kB / 421.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/0.2669, allocations: 15.98 kB / 421.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.2671, allocations: 8 kB / 421.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.692e-05/0.2671, allocations: 39.84 kB / 421.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.2672, allocations: 8 kB / 421.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.2673, allocations: 140.9 kB / 421.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2673, allocations: 4 kB / 421.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004309/0.2677, allocations: 76 kB / 421.8 MB, free: 3.68 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * 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 Backend phase and start with SimCode phase: time 0.001125/0.2689, allocations: 1.271 MB / 423.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004442/0.2693, allocations: 274 kB / 423.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2693, allocations: 0 / 423.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.2695, allocations: 139.7 kB / 423.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006776/0.2702, allocations: 68.62 kB / 423.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/0.2742, allocations: 3.293 MB / 426.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.2746, allocations: 0.7721 MB / 427.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.2747, allocations: 34.89 kB / 427.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.2749, allocations: 91.41 kB / 427.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2749, allocations: 0 / 427.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.306, allocations: 5.949 MB / 433.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.529, allocations: 11.98 kB / 433.7 MB, free: 7.641 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches