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.001549/0.001549, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001878/0.001878, allocations: 209.6 kB / 23.73 MB, free: 4.523 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.44/1.44, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.002383/0.002383, allocations: 47.92 kB / 377.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2629, allocations: 53.36 MB / 431.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003725/0.2667, allocations: 2.252 MB / 433.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.268, allocations: 0.6232 MB / 433.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001795/0.2682, allocations: 7.938 kB / 434 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.2684, allocations: 31.66 kB / 434 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.2685, allocations: 75.33 kB / 434.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.2688, allocations: 63.86 kB / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.2691, allocations: 262.8 kB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.2693, allocations: 69.27 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.2695, allocations: 111.6 kB / 434.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.2697, allocations: 107.5 kB / 434.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.2697, allocations: 20 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.797e-05/0.2698, allocations: 20 kB / 434.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.613e-05/0.2698, allocations: 47.78 kB / 434.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.514e-05/0.2699, allocations: 91.59 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.2702, allocations: 263.2 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2702, allocations: 0 / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2702, allocations: 4 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.2702, allocations: 0 / 435.1 MB, free: 2.645 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.0007253/0.271, allocations: 453.6 kB / 435.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.271, allocations: 12.03 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.962e-05/0.2711, allocations: 54.72 kB / 435.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.2712, allocations: 32.8 kB / 435.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.2716, allocations: 186.8 kB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.2716, allocations: 16.81 kB / 435.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/0.2717, allocations: 24.38 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.272, allocations: 210 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.2721, allocations: 7.953 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.2721, allocations: 4 kB / 436.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.2721, allocations: 8 kB / 436.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002596/0.2723, allocations: 125.6 kB / 436.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009976/0.2733, allocations: 0.6306 MB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/0.2736, allocations: 146.5 kB / 437 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.2737, allocations: 67.41 kB / 437 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.2738, allocations: 0 / 437 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.2738, allocations: 34.56 kB / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.072e-06/0.2738, allocations: 0 / 437.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001555/0.2753, allocations: 0.7418 MB / 437.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.2754, allocations: 59.41 kB / 437.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.2756, allocations: 180.3 kB / 438.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.2756, allocations: 29.7 kB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2757, allocations: 148.4 kB / 438.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.309e-05/0.2758, allocations: 91.14 kB / 438.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-05/0.2759, allocations: 49.7 kB / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.276, allocations: 330.8 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.2762, allocations: 51.97 kB / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2763, allocations: 100.2 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.2766, allocations: 164.2 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2766, allocations: 4 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004587/0.2771, allocations: 258 kB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.2771, allocations: 8 kB / 439.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.2771, allocations: 4.125 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.2772, allocations: 36.83 kB / 439.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.2774, allocations: 51.91 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.2788, allocations: 1.374 MB / 440.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2789, allocations: 8 kB / 440.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.2789, allocations: 8 kB / 440.7 MB, free: 12.59 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.000134/0.279, allocations: 133.9 kB / 440.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.2791, allocations: 19.86 kB / 440.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.015e-05/0.2791, allocations: 29.95 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2791, allocations: 7.938 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.696e-06/0.2791, allocations: 0 / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2791, allocations: 0 / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000954/0.2801, allocations: 0.6034 MB / 441.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2801, allocations: 0 / 441.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.2803, allocations: 43.97 kB / 441.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001136/0.2804, allocations: 32.78 kB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.2804, allocations: 4 kB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00125/0.2817, allocations: 1.385 MB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2817, allocations: 8.031 kB / 443 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.2823, allocations: 413.7 kB / 443.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.2823, allocations: 15.86 kB / 443.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.2823, allocations: 8 kB / 443.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.2824, allocations: 8 kB / 443.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.2825, allocations: 23.94 kB / 443.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.2825, allocations: 8 kB / 443.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.2826, allocations: 120.1 kB / 443.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2826, allocations: 4 kB / 443.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003268/0.2829, allocations: 60 kB / 443.6 MB, free: 9.465 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.0008952/0.2838, allocations: 0.9375 MB / 444.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005397/0.2844, allocations: 282.8 kB / 444.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2844, allocations: 0 / 444.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003106/0.2847, allocations: 218.4 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.0004003/0.2851, 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.003228/0.2883, allocations: 2.532 MB / 447.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001393/0.2885, allocations: 142.5 kB / 447.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.241e-05/0.2885, allocations: 21.94 kB / 447.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.2886, allocations: 71.41 kB / 447.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2886, allocations: 0 / 447.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03691/0.3255, allocations: 5.548 MB / 453.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.8, allocations: 0 / 453.4 MB, free: 15.66 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.237324184010504]