Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.001703/0.001703, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001864/0.001864, allocations: 190.5 kB / 23.72 MB, free: 4.684 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.397/1.397, 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.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 47.92 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2537, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003835/0.2575, allocations: 2.39 MB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2587, allocations: 0.5804 MB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2588, allocations: 7.938 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.2589, allocations: 31.66 kB / 425.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.2591, allocations: 79.33 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001996/0.2593, allocations: 51.94 kB / 425.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002965/0.2596, allocations: 258.8 kB / 426 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.2597, allocations: 64.55 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.2599, allocations: 107.6 kB / 426.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.2601, allocations: 103.5 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.2601, allocations: 20 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.537e-05/0.2601, allocations: 24 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.871e-05/0.2602, allocations: 43.84 kB / 426.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.2603, allocations: 119.4 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.2606, allocations: 247.3 kB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2606, allocations: 0 / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2606, allocations: 0 / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.2606, allocations: 4 kB / 426.7 MB, free: 10.5 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.0007085/0.2613, allocations: 449.6 kB / 427.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.2614, allocations: 12.03 kB / 427.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.842e-05/0.2614, allocations: 58.72 kB / 427.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.471e-05/0.2615, allocations: 28.75 kB / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.2618, allocations: 174.8 kB / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.2618, allocations: 16.81 kB / 427.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.2619, allocations: 24.38 kB / 427.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003776/0.2623, allocations: 213.9 kB / 427.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.2623, allocations: 7.953 kB / 427.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.2623, allocations: 8 kB / 427.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.2623, allocations: 4 kB / 427.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002609/0.2626, allocations: 125.7 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.2636, allocations: 0.6656 MB / 428.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.2639, allocations: 150.4 kB / 428.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.264, allocations: 64.83 kB / 428.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.2641, allocations: 4 kB / 428.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.2641, allocations: 30.56 kB / 428.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.2641, allocations: 0 / 428.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001549/0.2656, allocations: 0.7445 MB / 429.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.2657, allocations: 59.34 kB / 429.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.2659, allocations: 167.3 kB / 429.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.2659, allocations: 25.7 kB / 429.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.266, allocations: 160.3 kB / 429.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.026e-05/0.266, allocations: 95.16 kB / 430 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.2661, allocations: 45.7 kB / 430 MB, free: 6.973 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2663, allocations: 330.8 kB / 430.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.2664, allocations: 55.97 kB / 430.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.2665, allocations: 105.3 kB / 430.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.2668, allocations: 164.2 kB / 430.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2668, allocations: 0 / 430.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004643/0.2673, allocations: 262 kB / 430.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2673, allocations: 4 kB / 430.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2673, allocations: 4 kB / 430.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.2675, allocations: 32.83 kB / 431 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.2677, allocations: 47.92 kB / 431 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.269, allocations: 1.389 MB / 432.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.2691, allocations: 11.98 kB / 432.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.2691, allocations: 8.062 kB / 432.4 MB, free: 4.41 MB / 334.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.0001336/0.2693, allocations: 137.8 kB / 432.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.2693, allocations: 19.86 kB / 432.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.678e-05/0.2694, allocations: 25.97 kB / 432.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2694, allocations: 7.938 kB / 432.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2694, allocations: 0 / 432.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.2694, allocations: 3.984 kB / 432.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009492/0.2703, allocations: 0.6159 MB / 433.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2703, allocations: 0 / 433.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.2705, allocations: 43.91 kB / 433.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001225/0.2707, allocations: 40.83 kB / 433.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.2707, allocations: 4.062 kB / 433.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.2719, allocations: 1.386 MB / 434.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.2719, allocations: 4.031 kB / 434.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005844/0.2725, allocations: 400.9 kB / 435.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.2725, allocations: 23.92 kB / 435.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.2726, allocations: 4 kB / 435.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.2727, allocations: 16.03 kB / 435.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.028e-05/0.2727, allocations: 19.91 kB / 435.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.2727, allocations: 8 kB / 435.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.2729, allocations: 127.2 kB / 435.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2729, allocations: 0 / 435.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003338/0.2732, allocations: 56 kB / 435.3 MB, free: 1.27 MB / 334.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.000935/0.2741, allocations: 0.9454 MB / 436.3 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005677/0.2747, allocations: 281.2 kB / 436.6 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2747, allocations: 0 / 436.6 MB, free: 4 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003384/0.275, allocations: 206.6 kB / 436.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.2754, allocations: 40.3 kB / 436.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.2788, allocations: 2.532 MB / 439.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.2792, allocations: 0.752 MB / 440.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.242e-05/0.2792, allocations: 13.95 kB / 440.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.2794, allocations: 71.41 kB / 440.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2794, allocations: 0 / 440.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03543/0.3148, allocations: 4.966 MB / 445.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12, allocations: 0 / 445.1 MB, free: 7.41 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.421264805001556]