Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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.001904/0.001904, allocations: 107.6 kB / 21.18 MB, free: 452 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.002087/0.002087, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.432/1.432, allocations: 207.7 MB / 235.3 MB, free: 9.809 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.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",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.001816/0.001816, allocations: 47.92 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2592, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003101/0.2623, allocations: 2.237 MB / 398.6 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000918/0.2632, allocations: 0.6006 MB / 399.2 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.2634, allocations: 7.344 kB / 399.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.2635, allocations: 37.64 kB / 399.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.2637, allocations: 80.45 kB / 399.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.2639, allocations: 55.14 kB / 399.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.2641, allocations: 279.2 kB / 399.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2643, allocations: 73.42 kB / 399.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.2645, allocations: 106.2 kB / 399.8 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.2646, allocations: 94.66 kB / 399.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.2647, allocations: 24.83 kB / 399.9 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.775e-05/0.2647, allocations: 21.25 kB / 399.9 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.253e-05/0.2648, allocations: 57.39 kB / 400 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.741e-05/0.2649, allocations: 101.2 kB / 400.1 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003044/0.2652, allocations: 268 kB / 400.4 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2652, allocations: 4 kB / 400.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2652, allocations: 0 / 400.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2652, allocations: 0 / 400.4 MB, free: 6.379 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006248/0.2658, allocations: 451.6 kB / 400.8 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.2658, allocations: 18.53 kB / 400.8 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.2659, allocations: 63.17 kB / 400.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.2659, allocations: 30.22 kB / 400.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.2662, allocations: 182.8 kB / 401.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.2662, allocations: 13.66 kB / 401.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.2663, allocations: 27.48 kB / 401.1 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.2666, allocations: 197 kB / 401.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.2666, allocations: 5.719 kB / 401.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.2666, allocations: 9.125 kB / 401.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2666, allocations: 6.25 kB / 401.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.2669, allocations: 144.6 kB / 401.5 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008127/0.2677, allocations: 0.5442 MB / 402 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.268, allocations: 164.1 kB / 402.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.2681, allocations: 91.92 kB / 402.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.2682, allocations: 2.469 kB / 402.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.2682, allocations: 33.95 kB / 402.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.2682, allocations: 0 / 402.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001667/0.2699, allocations: 0.9223 MB / 403.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.2699, allocations: 59.81 kB / 403.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.27, allocations: 180.9 kB / 403.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.27, allocations: 30.92 kB / 403.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.091e-05/0.2701, allocations: 142.4 kB / 403.6 MB, free: 4.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.738e-05/0.2702, allocations: 121.4 kB / 403.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/0.2702, allocations: 52.23 kB / 403.8 MB, free: 4.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.705e-05/0.2703, allocations: 333.6 kB / 404.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.2704, allocations: 68.08 kB / 404.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.2705, allocations: 106.5 kB / 404.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.2708, allocations: 194.6 kB / 404.5 MB, free: 3.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2708, allocations: 5 kB / 404.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004451/0.2713, allocations: 294.7 kB / 404.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2713, allocations: 5.969 kB / 404.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2713, allocations: 0.875 kB / 404.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.2715, allocations: 45.28 kB / 404.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.2717, allocations: 56.61 kB / 404.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.2728, allocations: 1.641 MB / 406.5 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.2729, allocations: 10.62 kB / 406.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.2729, allocations: 6.094 kB / 406.5 MB, free: 1.809 MB / 318.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.0001059/0.273, allocations: 141.5 kB / 406.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.2731, allocations: 27.16 kB / 406.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.2731, allocations: 28.64 kB / 406.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.2732, allocations: 3.281 kB / 406.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.2732, allocations: 9.344 kB / 406.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2732, allocations: 2.062 kB / 406.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009269/0.2741, allocations: 0.7192 MB / 407.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2741, allocations: 2.031 kB / 407.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.2743, allocations: 53.2 kB / 407.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.2745, allocations: 44.33 kB / 407.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.2745, allocations: 6.75 kB / 407.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009164/0.2754, allocations: 1.379 MB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2754, allocations: 1.375 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007442/0.2761, allocations: 494.7 kB / 409.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.2762, allocations: 29.06 kB / 409.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.2762, allocations: 11.44 kB / 409.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.2764, allocations: 9.484 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.2764, allocations: 22.58 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.2764, allocations: 8.062 kB / 409.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.2766, allocations: 130.7 kB / 409.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2766, allocations: 0 / 409.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.2769, allocations: 70.44 kB / 409.7 MB, free: 15.31 MB / 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.001076/0.278, allocations: 1.01 MB / 410.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006379/0.2787, allocations: 331.4 kB / 411.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2787, allocations: 0 / 411.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.279, allocations: 241.4 kB / 411.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.2795, allocations: 51.53 kB / 411.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.2833, allocations: 2.746 MB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.2834, allocations: 150 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.2836, allocations: 22.45 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.2837, allocations: 75.47 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2837, allocations: 1.375 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0379/0.3216, allocations: 5.957 MB / 420.3 MB, free: 8.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.09, allocations: 5.328 kB / 420.3 MB, free: 8.988 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.563571295700967]