Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.001758/0.001758, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.00194/0.00194, allocations: 191.7 kB / 23.71 MB, free: 4.406 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.551/1.551, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 51.91 kB / 370.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2664, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003895/0.2703, allocations: 2.243 MB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2714, allocations: 0.5571 MB / 425.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.2715, allocations: 4 kB / 425.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.2717, allocations: 39.58 kB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.2719, allocations: 75.33 kB / 425.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.2721, allocations: 55.88 kB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.2724, allocations: 266.8 kB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2726, allocations: 71.25 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.2728, allocations: 119.5 kB / 426 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.2729, allocations: 95.48 kB / 426.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/0.2729, allocations: 20 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.743e-05/0.273, allocations: 24 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.282e-05/0.273, allocations: 47.83 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.2732, allocations: 107.5 kB / 426.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.2735, allocations: 275.2 kB / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2735, allocations: 0 / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2735, allocations: 0 / 426.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2735, allocations: 0 / 426.5 MB, free: 10.41 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007328/0.2742, allocations: 457.6 kB / 427 MB, free: 9.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2743, allocations: 8.031 kB / 427 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.2743, allocations: 58.73 kB / 427.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.2744, allocations: 28.75 kB / 427.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.2747, allocations: 182.8 kB / 427.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.2747, allocations: 12.81 kB / 427.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.66e-05/0.2748, allocations: 28.31 kB / 427.3 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003619/0.2752, allocations: 199.4 kB / 427.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2752, allocations: 4 kB / 427.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.2752, allocations: 8 kB / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.2752, allocations: 8 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.2755, allocations: 137.6 kB / 427.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009267/0.2764, allocations: 0.5442 MB / 428.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.2767, allocations: 166.5 kB / 428.4 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.2769, allocations: 96.81 kB / 428.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.2769, allocations: 0 / 428.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.277, allocations: 38.56 kB / 428.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.277, allocations: 96 / 428.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001883/0.2788, allocations: 0.9197 MB / 429.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.2789, allocations: 59.34 kB / 429.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.2791, allocations: 184 kB / 429.6 MB, free: 7.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.2791, allocations: 29.7 kB / 429.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.53e-05/0.2792, allocations: 144.8 kB / 429.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.029e-05/0.2793, allocations: 119 kB / 429.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.102e-05/0.2794, allocations: 53.7 kB / 430 MB, free: 6.734 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2795, allocations: 326.8 kB / 430.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.2797, allocations: 83.7 kB / 430.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.2798, allocations: 103.4 kB / 430.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.2802, allocations: 193.3 kB / 430.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2802, allocations: 3.938 kB / 430.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000511/0.2807, allocations: 294.3 kB / 431 MB, free: 5.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2807, allocations: 4 kB / 431 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.2807, allocations: 0 / 431 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.2809, allocations: 52.88 kB / 431 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.2811, allocations: 59.91 kB / 431.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.2827, allocations: 1.63 MB / 432.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2828, allocations: 8.031 kB / 432.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.2828, allocations: 12.19 kB / 432.7 MB, free: 3.844 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.2829, allocations: 141.8 kB / 432.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.283, allocations: 27.8 kB / 432.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.278e-05/0.2831, allocations: 34.64 kB / 432.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.2831, allocations: 4 kB / 432.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2831, allocations: 0 / 432.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2831, allocations: 0 / 432.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.2842, allocations: 0.726 MB / 433.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2842, allocations: 3.984 kB / 433.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.2845, allocations: 55.91 kB / 433.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.2846, allocations: 32.84 kB / 433.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2846, allocations: 8 kB / 433.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.2858, allocations: 1.381 MB / 435.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2858, allocations: 4.125 kB / 435.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007125/0.2865, allocations: 487.3 kB / 435.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.2866, allocations: 23.8 kB / 435.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.2866, allocations: 8 kB / 435.7 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.2867, allocations: 15.97 kB / 435.7 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.665e-05/0.2868, allocations: 23.97 kB / 435.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.2868, allocations: 11.98 kB / 435.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.2869, allocations: 127.2 kB / 435.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2869, allocations: 4 kB / 435.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.2873, allocations: 68 kB / 435.9 MB, free: 456 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.2883, allocations: 1.016 MB / 436.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005876/0.2889, allocations: 319.7 kB / 437.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2889, allocations: 4 kB / 437.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003563/0.2893, allocations: 230.5 kB / 437.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.2897, allocations: 43.91 kB / 437.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.2933, allocations: 2.757 MB / 440.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001533/0.2935, allocations: 146.8 kB / 440.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.832e-05/0.2935, allocations: 26.27 kB / 440.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.2937, allocations: 79.41 kB / 440.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2937, allocations: 0 / 440.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.3334, allocations: 5.947 MB / 446.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.94, allocations: 6.562 kB / 446.5 MB, free: 5.852 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_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_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.540591740049422]