Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009712/0.0009712, allocations: 120.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2568, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003829/0.2607, allocations: 2.433 MB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.262, allocations: 0.6505 MB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.2622, allocations: 4 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.2624, allocations: 43.58 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001792/0.2626, allocations: 71.34 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.2629, allocations: 75.84 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.2633, allocations: 258.9 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.2635, allocations: 101.3 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.2637, allocations: 111.6 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.2639, allocations: 107.5 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.2639, allocations: 20 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.56e-05/0.264, allocations: 27.98 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.2641, allocations: 43.84 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.2642, allocations: 111.4 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00032/0.2645, allocations: 269.9 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2645, allocations: 3.938 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2645, allocations: 0 / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.2646, allocations: 0 / 413.1 MB, free: 13.21 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007848/0.2653, allocations: 0.5299 MB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2654, allocations: 11.97 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.712e-05/0.2655, allocations: 58.73 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.2657, allocations: 48.72 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003293/0.266, allocations: 240 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.2661, allocations: 16.81 kB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.518e-05/0.2661, allocations: 24.33 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.2665, allocations: 225 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.2666, allocations: 4 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.2666, allocations: 8 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.2666, allocations: 4 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.2669, allocations: 145 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.268, allocations: 0.7755 MB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.2684, allocations: 209 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.2687, allocations: 109.6 kB / 415.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.2687, allocations: 8.328 kB / 415.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.2688, allocations: 38.5 kB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.2688, allocations: 0 / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001642/0.2704, allocations: 0.8638 MB / 416.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.2705, allocations: 81.11 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.2706, allocations: 183.4 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.2707, allocations: 29.7 kB / 416.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.934e-05/0.2708, allocations: 140.5 kB / 416.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.81e-05/0.2708, allocations: 103.1 kB / 416.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.569e-05/0.2709, allocations: 53.69 kB / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2711, allocations: 330.8 kB / 417.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.2712, allocations: 67.95 kB / 417.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.2714, allocations: 112.2 kB / 417.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003207/0.2717, allocations: 186.6 kB / 417.6 MB, free: 8.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.2717, allocations: 7.938 kB / 417.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004165/0.2721, allocations: 237.5 kB / 417.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.2722, allocations: 12 kB / 417.9 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2722, allocations: 3.938 kB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.2722, allocations: 4 kB / 417.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.2725, allocations: 55.97 kB / 417.9 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.2725, allocations: 3.938 kB / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.2726, allocations: 11.98 kB / 417.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.2726, allocations: 15.94 kB / 418 MB, free: 7.922 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.0001358/0.2728, allocations: 153.6 kB / 418.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.295e-05/0.2728, allocations: 23.86 kB / 418.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.373e-05/0.2729, allocations: 29.86 kB / 418.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2729, allocations: 4 kB / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2729, allocations: 0 / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2729, allocations: 4 kB / 418.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008202/0.2738, allocations: 0.5897 MB / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2738, allocations: 0 / 418.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.2741, allocations: 59.91 kB / 418.8 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.2741, allocations: 0 / 418.8 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.851e-05/0.2741, allocations: 8 kB / 418.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.2741, allocations: 3.938 kB / 418.8 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2741, allocations: 4 kB / 418.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006397/0.2748, allocations: 493.1 kB / 419.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.531e-05/0.2748, allocations: 97.05 kB / 419.4 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.2749, allocations: 8 kB / 419.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.2751, allocations: 15.88 kB / 419.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.2751, allocations: 23.97 kB / 419.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.2751, allocations: 8 kB / 419.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.2752, allocations: 136.2 kB / 419.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2753, allocations: 0 / 419.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.2756, allocations: 52 kB / 419.6 MB, free: 6.113 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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.0008747/0.2765, allocations: 1.03 MB / 420.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003862/0.2769, allocations: 178.1 kB / 420.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2769, allocations: 4 kB / 420.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.2771, allocations: 95.83 kB / 420.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004851/0.2776, allocations: 48.22 kB / 421 MB, free: 4.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.2806, allocations: 2.657 MB / 423.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.2809, allocations: 0.7518 MB / 424.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.281, allocations: 17.95 kB / 424.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.2811, allocations: 71.41 kB / 424.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2811, allocations: 4 kB / 424.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.3037, allocations: 4.45 MB / 428.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.38, allocations: 15.42 kB / 429 MB, free: 12.72 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_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_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches