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.001247/0.001247, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001319/0.001319, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8732/0.8732, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.503e-06/1.503e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/1.988e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002392/0.002412, allocations: 2.22 MB / 320.6 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007759/0.003188, allocations: 0.5569 MB / 321.2 MB, free: 3.555 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.003299, allocations: 7.938 kB / 321.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.003433, allocations: 35.59 kB / 321.2 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.003551, allocations: 79.28 kB / 321.3 MB, free: 3.434 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.003738, allocations: 59.91 kB / 321.4 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002073/0.003945, allocations: 270.6 kB / 321.6 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.004084, allocations: 60.53 kB / 321.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.004251, allocations: 151.6 kB / 321.9 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.00436, allocations: 71.8 kB / 321.9 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.004395, allocations: 20 kB / 321.9 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.214e-05/0.004417, allocations: 20 kB / 322 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.683e-05/0.004453, allocations: 51.81 kB / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.004519, allocations: 79.77 kB / 322.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.004753, allocations: 251.2 kB / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.004756, allocations: 0 / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.004757, allocations: 0 / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.004762, allocations: 0 / 322.3 MB, free: 2.414 MB / 282.7 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.0005272/0.005289, allocations: 445.7 kB / 322.8 MB, free: 1.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.005331, allocations: 8.922 kB / 322.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.464e-05/0.005375, allocations: 58.73 kB / 322.8 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.936e-05/0.005415, allocations: 32.75 kB / 322.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.005662, allocations: 178.1 kB / 323 MB, free: 1.641 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.005675, allocations: 16.88 kB / 323.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/0.005717, allocations: 24.33 kB / 323.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.005995, allocations: 219.2 kB / 323.3 MB, free: 1.375 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.00601, allocations: 4.188 kB / 323.3 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.006025, allocations: 8.125 kB / 323.3 MB, free: 1.363 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.006033, allocations: 8 kB / 323.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.0062, allocations: 125.9 kB / 323.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007298/0.006929, allocations: 0.627 MB / 324.1 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.007124, allocations: 134.5 kB / 324.2 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.966e-05/0.007204, allocations: 64.83 kB / 324.3 MB, free: 360 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.00722, allocations: 4 kB / 324.3 MB, free: 356 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.007242, allocations: 34.56 kB / 324.3 MB, free: 312 kB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 1.714e-06/0.007244, allocations: 0 / 324.3 MB, free: 312 kB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.001116/0.00836, allocations: 0.7387 MB / 325 MB, free: 15.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.00839, allocations: 59.34 kB / 325.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.008506, allocations: 166.8 kB / 325.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.00852, allocations: 29.7 kB / 325.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.00858, allocations: 144.4 kB / 325.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.037e-05/0.00863, allocations: 95.2 kB / 325.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.509e-05/0.008695, allocations: 53.66 kB / 325.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.561e-05/0.008771, allocations: 330.8 kB / 325.9 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.584e-05/0.008857, allocations: 59.97 kB / 326 MB, free: 14.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.292e-05/0.00895, allocations: 105.2 kB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.009128, allocations: 164.8 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.00913, allocations: 4 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004121/0.009543, allocations: 250.1 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.009559, allocations: 6.969 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.009564, allocations: 0 / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001241/0.009688, allocations: 36.83 kB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.009826, allocations: 51.91 kB / 326.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008137/0.01064, allocations: 1.37 MB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.01071, allocations: 15.95 kB / 327.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.01072, allocations: 12 kB / 328 MB, free: 12.38 MB / 298.7 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 8.322e-05/0.0108, allocations: 129.8 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.01082, allocations: 19.91 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.01086, allocations: 33.95 kB / 328.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.01086, allocations: 3.938 kB / 328.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.01086, allocations: 4.062 kB / 328.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.01087, allocations: 7.938 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005757/0.01144, allocations: 0.5956 MB / 328.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.01144, allocations: 0 / 328.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.01157, allocations: 43.92 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.297e-05/0.01164, allocations: 32.83 kB / 328.8 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.01165, allocations: 12.06 kB / 328.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009314/0.01258, allocations: 1.377 MB / 330.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.01258, allocations: 3.984 kB / 330.2 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.01293, allocations: 400.8 kB / 330.6 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.663e-05/0.01295, allocations: 15.94 kB / 330.6 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.01296, allocations: 12.06 kB / 330.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.404e-05/0.01303, allocations: 8 kB / 330.6 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.683e-05/0.01306, allocations: 19.97 kB / 330.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.01307, allocations: 4 kB / 330.7 MB, free: 9.465 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.463e-05/0.01314, allocations: 135.8 kB / 330.8 MB, free: 9.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01314, allocations: 0 / 330.8 MB, free: 9.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.01335, allocations: 52 kB / 330.9 MB, free: 9.281 MB / 298.7 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.0005228/0.01387, allocations: 0.9453 MB / 331.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.01427, allocations: 274.5 kB / 332.1 MB, free: 8.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01427, allocations: 0 / 332.1 MB, free: 8.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.01443, allocations: 206.5 kB / 332.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.01476, allocations: 52.27 kB / 332.3 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.01678, allocations: 2.449 MB / 334.8 MB, free: 5.184 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.938e-05/0.01686, allocations: 138.5 kB / 334.9 MB, free: 5.027 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.247e-05/0.01693, allocations: 17.95 kB / 334.9 MB, free: 5.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.921e-05/0.01701, allocations: 68.47 kB / 335 MB, free: 4.941 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01701, allocations: 0 / 335 MB, free: 4.941 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02078/0.03779, allocations: 5.584 MB / 340.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/7.451, allocations: 6.875 kB / 340.6 MB, free: 15.49 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/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: 9.144620236940682]