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.001675/0.001675, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001826/0.001826, allocations: 184.2 kB / 23.72 MB, free: 4.699 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.438/1.438, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.00152/0.00152, allocations: 43.92 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2649, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003785/0.2687, allocations: 2.379 MB / 425 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.2698, allocations: 0.5844 MB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.27, allocations: 4 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001595/0.2701, allocations: 35.59 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.2703, allocations: 79.33 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.2705, allocations: 67.78 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.2709, allocations: 274.7 kB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.2711, allocations: 71.23 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.2712, allocations: 111.6 kB / 426.2 MB, free: 11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.2714, allocations: 115.5 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.2715, allocations: 20 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.824e-05/0.2715, allocations: 20 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.88e-05/0.2716, allocations: 51.84 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.2717, allocations: 123.3 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.272, allocations: 275.2 kB / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.272, allocations: 0 / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.272, allocations: 0 / 426.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.272, allocations: 0 / 426.8 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.0007666/0.2728, allocations: 457.5 kB / 427.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.2729, allocations: 16.03 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.069e-05/0.2729, allocations: 54.67 kB / 427.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.27e-05/0.273, allocations: 32.75 kB / 427.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.2733, allocations: 178.8 kB / 427.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.2734, allocations: 20.81 kB / 427.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.2734, allocations: 20.33 kB / 427.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.2738, allocations: 199.4 kB / 427.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2738, allocations: 0 / 427.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.2738, allocations: 12 kB / 427.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2738, allocations: 8 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002853/0.2741, allocations: 141.6 kB / 427.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009823/0.2751, allocations: 0.5832 MB / 428.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.2754, allocations: 173.6 kB / 428.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.2756, allocations: 92.19 kB / 428.8 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.2756, allocations: 4.094 kB / 428.8 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.2756, allocations: 38.5 kB / 428.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.2756, allocations: 0 / 428.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00191/0.2775, allocations: 0.9159 MB / 429.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.2776, allocations: 67.27 kB / 429.8 MB, free: 7.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.2778, allocations: 176.1 kB / 430 MB, free: 7.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.2778, allocations: 37.69 kB / 430 MB, free: 7.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.473e-05/0.2779, allocations: 140.8 kB / 430.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.098e-05/0.278, allocations: 122.9 kB / 430.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.2781, allocations: 57.64 kB / 430.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.2782, allocations: 330.8 kB / 430.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.2784, allocations: 71.97 kB / 430.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.2785, allocations: 103.2 kB / 430.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.2789, allocations: 197.3 kB / 431 MB, free: 5.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2789, allocations: 0 / 431 MB, free: 5.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005316/0.2794, allocations: 298.3 kB / 431.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.2794, allocations: 4 kB / 431.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.2794, allocations: 4 kB / 431.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.2796, allocations: 44.89 kB / 431.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.2799, allocations: 59.84 kB / 431.4 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.2815, allocations: 1.642 MB / 433 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.2816, allocations: 12.02 kB / 433.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.2816, allocations: 15.98 kB / 433.1 MB, free: 3.781 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.0001515/0.2818, allocations: 134.3 kB / 433.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.2818, allocations: 31.86 kB / 433.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.382e-05/0.2819, allocations: 34.64 kB / 433.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2819, allocations: 4 kB / 433.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.2819, allocations: 0 / 433.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2819, allocations: 0 / 433.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.283, allocations: 0.7415 MB / 434 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.283, allocations: 4 kB / 434 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.2833, allocations: 55.97 kB / 434.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.2834, allocations: 36.77 kB / 434.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.2834, allocations: 8 kB / 434.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.2846, allocations: 1.381 MB / 435.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.2846, allocations: 7.969 kB / 435.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006821/0.2853, allocations: 486.8 kB / 436 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.93e-05/0.2854, allocations: 23.86 kB / 436 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.2854, allocations: 4 kB / 436 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.2855, allocations: 12 kB / 436 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.2856, allocations: 27.95 kB / 436 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.2856, allocations: 8 kB / 436.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.2857, allocations: 135.2 kB / 436.2 MB, free: 444 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2857, allocations: 0 / 436.2 MB, free: 444 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.000371/0.2861, allocations: 64 kB / 436.2 MB, free: 380 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.001024/0.2871, allocations: 1.016 MB / 437.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000615/0.2877, allocations: 331.6 kB / 437.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2877, allocations: 0 / 437.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003427/0.2881, allocations: 222.6 kB / 437.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.2885, allocations: 63.44 kB / 437.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.2921, allocations: 2.765 MB / 440.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.2925, allocations: 0.7525 MB / 441.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.607e-05/0.2926, allocations: 22.3 kB / 441.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.2927, allocations: 75.41 kB / 441.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2927, allocations: 0 / 441.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03613/0.3289, allocations: 5.511 MB / 447 MB, free: 5.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.91, allocations: 14.5 kB / 447 MB, free: 5.555 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.383218308998039]