Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 107.6 kB / 21.18 MB, free: 472 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 208 kB / 24.47 MB, free: 3.801 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 207.7 MB / 235.3 MB, free: 9.82 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 66.52 kB / 347.2 MB, free: 9.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2637, allocations: 49.16 MB / 396.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003344/0.267, allocations: 2.264 MB / 398.6 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.2681, allocations: 0.6048 MB / 399.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.2682, allocations: 4.438 kB / 399.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.2683, allocations: 37.77 kB / 399.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.2685, allocations: 68.3 kB / 399.3 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.2687, allocations: 62.98 kB / 399.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.269, allocations: 252.7 kB / 399.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.2692, allocations: 70.05 kB / 399.7 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.2693, allocations: 100.9 kB / 399.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/0.2695, allocations: 96.31 kB / 399.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.2695, allocations: 19.5 kB / 399.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.028e-05/0.2696, allocations: 20.81 kB / 399.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.793e-05/0.2696, allocations: 49.7 kB / 400 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.298e-05/0.2697, allocations: 93.84 kB / 400.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.27, allocations: 257 kB / 400.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.27, allocations: 4 kB / 400.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.27, allocations: 0 / 400.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.27, allocations: 3.938 kB / 400.3 MB, free: 6.398 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006777/0.2707, allocations: 462.8 kB / 400.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2708, allocations: 14.64 kB / 400.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.2708, allocations: 52.91 kB / 400.8 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.2709, allocations: 30.84 kB / 400.9 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.2711, allocations: 167.2 kB / 401 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.2711, allocations: 21.59 kB / 401.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.049e-05/0.2712, allocations: 22.41 kB / 401.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/0.2716, allocations: 224.6 kB / 401.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2716, allocations: 4.562 kB / 401.3 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.2716, allocations: 10.84 kB / 401.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.2716, allocations: 4.156 kB / 401.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.2719, allocations: 137.9 kB / 401.5 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009994/0.2729, allocations: 0.7065 MB / 402.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003917/0.2733, allocations: 190.2 kB / 402.3 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.2735, allocations: 96.62 kB / 402.4 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.2736, allocations: 11.53 kB / 402.5 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.2736, allocations: 37.33 kB / 402.5 MB, free: 4.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.114e-06/0.2736, allocations: 0 / 402.5 MB, free: 4.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001448/0.275, allocations: 0.721 MB / 403.2 MB, free: 4.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.2751, allocations: 80.17 kB / 403.3 MB, free: 4.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.2752, allocations: 178.8 kB / 403.5 MB, free: 4.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.2752, allocations: 30.7 kB / 403.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.657e-05/0.2753, allocations: 145.9 kB / 403.6 MB, free: 4.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.2754, allocations: 98.16 kB / 403.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-05/0.2754, allocations: 47.94 kB / 403.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.476e-05/0.2755, allocations: 333.5 kB / 404.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.2756, allocations: 65.77 kB / 404.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.2758, allocations: 109.5 kB / 404.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.276, allocations: 186.3 kB / 404.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2761, allocations: 3.938 kB / 404.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003776/0.2764, allocations: 244.3 kB / 404.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2764, allocations: 5.812 kB / 404.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.2765, allocations: 1.062 kB / 404.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2765, allocations: 2.312 kB / 404.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.2767, allocations: 60.23 kB / 404.8 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2767, allocations: 9.062 kB / 404.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.2768, allocations: 9.812 kB / 404.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.2768, allocations: 11.28 kB / 404.8 MB, free: 3.266 MB / 318.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 8.755e-05/0.2769, allocations: 140 kB / 404.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.508e-05/0.277, allocations: 25.95 kB / 405 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.829e-05/0.277, allocations: 29.3 kB / 405 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.277, allocations: 6.438 kB / 405 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.277, allocations: 1.531 kB / 405 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.277, allocations: 3.047 kB / 405 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007219/0.2778, allocations: 0.5335 MB / 405.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2778, allocations: 1.062 kB / 405.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.278, allocations: 60.66 kB / 405.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.278, allocations: 3.031 kB / 405.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.278, allocations: 7.281 kB / 405.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.278, allocations: 10.84 kB / 405.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2781, allocations: 1.281 kB / 405.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.2786, allocations: 0.4929 MB / 406.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.2786, allocations: 14.84 kB / 406.1 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.2787, allocations: 10.94 kB / 406.1 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.2788, allocations: 15.77 kB / 406.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.319e-05/0.2789, allocations: 19.14 kB / 406.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2789, allocations: 5.594 kB / 406.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.295e-05/0.279, allocations: 131.4 kB / 406.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.279, allocations: 0 / 406.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.2793, allocations: 53.27 kB / 406.3 MB, free: 2.191 MB / 318.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.0007178/0.28, allocations: 1.035 MB / 407.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003721/0.2804, allocations: 180 kB / 407.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2804, allocations: 0 / 407.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.2806, allocations: 87.48 kB / 407.6 MB, free: 1.227 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.2811, allocations: 40.89 kB / 407.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.2846, allocations: 2.641 MB / 410.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/0.2847, allocations: 140.5 kB / 410.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00013/0.2849, allocations: 23.17 kB / 410.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.285, allocations: 71.48 kB / 410.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.285, allocations: 3.938 kB / 410.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.036/0.321, allocations: 5.06 MB / 415.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.96, allocations: 5.172 kB / 415.6 MB, free: 12.7 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.39047000091523]