Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001996/0.001996, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 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.002562/0.002562, allocations: 211.4 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.FirstGrounded,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 51.86 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2647, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003997/0.2687, allocations: 2.248 MB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.2702, allocations: 0.6232 MB / 433.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002223/0.2704, allocations: 7.938 kB / 434 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.2706, allocations: 39.58 kB / 434 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.2708, allocations: 67.42 kB / 434.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003271/0.2711, allocations: 71.84 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003227/0.2714, allocations: 258.8 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.2716, allocations: 61.05 kB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.2718, allocations: 119.6 kB / 434.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.272, allocations: 87.5 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.272, allocations: 20 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.314e-05/0.2721, allocations: 24 kB / 434.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.557e-05/0.2721, allocations: 47.83 kB / 434.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.2724, allocations: 99.53 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003511/0.2727, allocations: 252.8 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2727, allocations: 4 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2727, allocations: 0 / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.2727, allocations: 0 / 435.1 MB, free: 2.637 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.0008963/0.2736, allocations: 461.5 kB / 435.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2737, allocations: 8.031 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.119e-05/0.2737, allocations: 54.73 kB / 435.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.2739, allocations: 32.78 kB / 435.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.2743, allocations: 182.9 kB / 435.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.2743, allocations: 16.8 kB / 435.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.2743, allocations: 24.38 kB / 435.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.2747, allocations: 213.9 kB / 436.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.2747, allocations: 3.953 kB / 436.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.2747, allocations: 12 kB / 436.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2747, allocations: 4 kB / 436.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.275, allocations: 121.7 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.2761, allocations: 0.6383 MB / 436.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000272/0.2763, allocations: 138.5 kB / 437 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.2765, allocations: 64.83 kB / 437 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.2765, allocations: 4 kB / 437 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.2765, allocations: 34.56 kB / 437.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.2765, allocations: 0 / 437.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001601/0.2781, allocations: 0.7446 MB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.2782, allocations: 51.41 kB / 437.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.2783, allocations: 180.3 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2784, allocations: 29.7 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2785, allocations: 152.3 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.2787, allocations: 95.16 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.243e-05/0.2787, allocations: 45.7 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.2789, allocations: 330.8 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.279, allocations: 51.98 kB / 438.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.2792, allocations: 104.2 kB / 438.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000383/0.2795, allocations: 160.2 kB / 439 MB, free: 14.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.2795, allocations: 4 kB / 439 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004641/0.28, allocations: 262.1 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.28, allocations: 4 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.28, allocations: 0 / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.2802, allocations: 32.84 kB / 439.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.2804, allocations: 51.91 kB / 439.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.2818, allocations: 1.373 MB / 440.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.2819, allocations: 12.16 kB / 440.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.2819, allocations: 12 kB / 440.7 MB, free: 12.58 MB / 350.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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001471/0.2821, allocations: 137.8 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/0.2821, allocations: 23.86 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.587e-05/0.2822, allocations: 21.97 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/0.2823, allocations: 3.938 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.2823, allocations: 4 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2823, allocations: 3.984 kB / 440.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009445/0.2832, allocations: 0.5955 MB / 441.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.2833, allocations: 4 kB / 441.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.2835, allocations: 43.91 kB / 441.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001172/0.2836, allocations: 36.83 kB / 441.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.2836, allocations: 8 kB / 441.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.285, allocations: 1.389 MB / 443 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.285, allocations: 0 / 443 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005863/0.2856, allocations: 405.8 kB / 443.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.2856, allocations: 19.86 kB / 443.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.2856, allocations: 4 kB / 443.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.2857, allocations: 11.97 kB / 443.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.2858, allocations: 23.97 kB / 443.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.2858, allocations: 8 kB / 443.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.2859, allocations: 128.1 kB / 443.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2859, allocations: 3.938 kB / 443.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000335/0.2863, allocations: 63.94 kB / 443.6 MB, free: 9.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0009349/0.2872, allocations: 0.9337 MB / 444.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005734/0.2878, allocations: 278.5 kB / 444.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2878, allocations: 0 / 444.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.2881, allocations: 206.6 kB / 445.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.2885, allocations: 43.84 kB / 445.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.2918, allocations: 2.543 MB / 447.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.292, allocations: 134.5 kB / 447.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.878e-05/0.2921, allocations: 29.92 kB / 447.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.2922, allocations: 63.42 kB / 447.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2922, allocations: 0 / 447.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04093/0.3332, allocations: 5.468 MB / 453.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.06, allocations: 5.734 kB / 453.3 MB, free: 15.73 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_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_1_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.544110596179962]