Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001899/0.001899, allocations: 190.5 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2727, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004691/0.2774, allocations: 2.452 MB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.2787, allocations: 0.5766 MB / 425.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.2788, allocations: 11.94 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.279, allocations: 43.58 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.2792, allocations: 63.41 kB / 425.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.2795, allocations: 67.86 kB / 425.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.2799, allocations: 250.8 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.2801, allocations: 69.64 kB / 426.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.2802, allocations: 107.6 kB / 426.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.2804, allocations: 107.5 kB / 426.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.496e-05/0.2805, allocations: 20 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.924e-05/0.2805, allocations: 20 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.55e-05/0.2806, allocations: 51.83 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.2807, allocations: 115.5 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.281, allocations: 255.3 kB / 426.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.281, allocations: 0 / 426.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2811, allocations: 0 / 426.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2811, allocations: 0 / 426.8 MB, free: 10.4 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.0008101/0.2819, allocations: 461.5 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.2819, allocations: 8.031 kB / 427.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.166e-05/0.282, allocations: 58.73 kB / 427.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.291e-05/0.282, allocations: 28.75 kB / 427.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/0.2824, allocations: 174.8 kB / 427.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.2824, allocations: 20.81 kB / 427.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.2824, allocations: 20.33 kB / 427.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004316/0.2829, allocations: 229 kB / 427.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.2829, allocations: 4 kB / 427.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.2829, allocations: 4 kB / 427.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.2829, allocations: 4 kB / 427.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.2832, allocations: 147.9 kB / 427.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.2845, allocations: 0.7473 MB / 428.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.2849, allocations: 189 kB / 428.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.2852, allocations: 97.66 kB / 429 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.2852, allocations: 4.188 kB / 429 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.2852, allocations: 42.44 kB / 429 MB, free: 8.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.202e-06/0.2852, allocations: 4 kB / 429 MB, free: 8.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.00158/0.2868, allocations: 0.716 MB / 429.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.2869, allocations: 77.11 kB / 429.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.287, allocations: 183.2 kB / 430 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.2871, allocations: 33.7 kB / 430 MB, free: 6.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.2872, allocations: 136.5 kB / 430.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.718e-05/0.2872, allocations: 99.11 kB / 430.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.292e-05/0.2873, allocations: 45.7 kB / 430.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2875, allocations: 334.8 kB / 430.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.2876, allocations: 59.97 kB / 430.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.2878, allocations: 120.2 kB / 430.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.2882, allocations: 198.8 kB / 431 MB, free: 5.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2882, allocations: 3.938 kB / 431 MB, free: 5.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004292/0.2886, allocations: 237.4 kB / 431.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2886, allocations: 4 kB / 431.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.2886, allocations: 7.984 kB / 431.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2886, allocations: 0 / 431.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.2889, allocations: 63.91 kB / 431.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2889, allocations: 4 kB / 431.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.289, allocations: 20.05 kB / 431.3 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.289, allocations: 8 kB / 431.3 MB, free: 5.555 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.0001328/0.2892, allocations: 141.7 kB / 431.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.2892, allocations: 19.91 kB / 431.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.54e-05/0.2893, allocations: 25.81 kB / 431.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2893, allocations: 4 kB / 431.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2893, allocations: 3.938 kB / 431.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2893, allocations: 3.984 kB / 431.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008632/0.2902, allocations: 0.5618 MB / 432.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2902, allocations: 0 / 432.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.2905, allocations: 55.97 kB / 432.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.2905, allocations: 0 / 432.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.2905, allocations: 8 kB / 432.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.617e-06/0.2905, allocations: 11.97 kB / 432.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2905, allocations: 4 kB / 432.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000684/0.2912, allocations: 493.1 kB / 432.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.2912, allocations: 23.8 kB / 432.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.2913, allocations: 11.94 kB / 432.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.2914, allocations: 11.94 kB / 432.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.2915, allocations: 27.89 kB / 432.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2915, allocations: 4 kB / 432.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.2916, allocations: 128.4 kB / 432.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2916, allocations: 0 / 432.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.292, allocations: 56 kB / 432.9 MB, free: 3.891 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.001029/0.293, allocations: 1.023 MB / 433.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003813/0.2934, allocations: 167.8 kB / 434.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2934, allocations: 0 / 434.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.2935, allocations: 88.22 kB / 434.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.294, allocations: 47.91 kB / 434.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.2975, allocations: 2.648 MB / 436.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.2979, allocations: 0.748 MB / 437.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.395e-05/0.298, allocations: 21.95 kB / 437.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.2982, allocations: 67.41 kB / 437.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2982, allocations: 0 / 437.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.3324, allocations: 4.676 MB / 442.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.43, allocations: 0 / 442.4 MB, free: 10.38 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.924729484002455]