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.0009073/0.0009073, 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.001274/0.001274, 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.8465/0.8465, allocations: 173.3 MB / 200.4 MB, free: 9.43 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.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 3.046e-06/3.046e-06, allocations: 3.984 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.205e-05/2.51e-05, allocations: 6.219 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002895/0.00292, allocations: 2.22 MB / 320.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009112/0.003831, allocations: 0.5608 MB / 321.2 MB, free: 3.555 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.003978, allocations: 7.938 kB / 321.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.004115, allocations: 35.66 kB / 321.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.004261, allocations: 83.2 kB / 321.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001998/0.004461, allocations: 59.84 kB / 321.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000249/0.00471, allocations: 286.5 kB / 321.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.004887, allocations: 72.17 kB / 321.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.005136, allocations: 167.5 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.005402, allocations: 83.75 kB / 322 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.393e-05/0.005446, allocations: 20 kB / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.657e-05/0.005473, allocations: 24 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.153e-05/0.005514, allocations: 47.77 kB / 322.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.383e-05/0.005588, allocations: 83.83 kB / 322.2 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.005884, allocations: 271 kB / 322.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.005888, allocations: 0 / 322.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.00589, allocations: 0 / 322.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.005895, allocations: 0 / 322.4 MB, free: 2.332 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005487/0.006444, allocations: 457.7 kB / 322.9 MB, free: 1.855 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.006485, allocations: 8.031 kB / 322.9 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.00653, allocations: 54.73 kB / 322.9 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.006572, allocations: 28.78 kB / 323 MB, free: 1.758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.00683, allocations: 190 kB / 323.1 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.006846, allocations: 16.88 kB / 323.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.006888, allocations: 24.38 kB / 323.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.007167, allocations: 200.6 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.00718, allocations: 192 / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.007198, allocations: 12.12 kB / 323.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.007205, allocations: 4 kB / 323.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.007378, allocations: 137.9 kB / 323.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006325/0.008011, allocations: 0.5445 MB / 324.1 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.008227, allocations: 158.5 kB / 324.2 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.008329, allocations: 96.33 kB / 324.3 MB, free: 312 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.008347, allocations: 4 kB / 324.3 MB, free: 308 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.008367, allocations: 38.5 kB / 324.4 MB, free: 260 kB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/0.00837, allocations: 0 / 324.4 MB, free: 260 kB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.001286/0.009655, allocations: 0.9256 MB / 325.3 MB, free: 15.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.009684, allocations: 55.41 kB / 325.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.009807, allocations: 184.1 kB / 325.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.009822, allocations: 29.7 kB / 325.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.009885, allocations: 136.8 kB / 325.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.595e-05/0.009941, allocations: 119 kB / 325.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/0.01, allocations: 57.69 kB / 325.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.869e-05/0.01008, allocations: 330.8 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.332e-05/0.01017, allocations: 71.95 kB / 326.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.01028, allocations: 108 kB / 326.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.01047, allocations: 189.3 kB / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.01048, allocations: 0 / 326.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003171/0.01079, allocations: 306.2 kB / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.01081, allocations: 4 kB / 326.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.01082, allocations: 4 kB / 326.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001513/0.01097, allocations: 44.89 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.01113, allocations: 55.91 kB / 327 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.01215, allocations: 1.637 MB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.549e-05/0.01223, allocations: 8.031 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.01224, allocations: 8 kB / 328.6 MB, free: 11.78 MB / 298.7 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.0001012/0.01234, allocations: 145.8 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.01237, allocations: 19.91 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.0124, allocations: 34.58 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.0124, allocations: 0 / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.01241, allocations: 4 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.01241, allocations: 0 / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007948/0.01321, allocations: 0.7262 MB / 329.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.01321, allocations: 3.938 kB / 329.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.01336, allocations: 63.89 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.916e-05/0.01344, allocations: 32.84 kB / 329.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.01345, allocations: 8 kB / 329.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007694/0.01422, allocations: 1.381 MB / 331 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01422, allocations: 4.125 kB / 331 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.01465, allocations: 490.8 kB / 331.5 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.394e-05/0.01467, allocations: 23.8 kB / 331.5 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.01469, allocations: 4 kB / 331.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.014e-05/0.01476, allocations: 12.03 kB / 331.5 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.01481, allocations: 23.91 kB / 331.6 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.01482, allocations: 8 kB / 331.6 MB, free: 8.582 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.708e-05/0.01489, allocations: 135.2 kB / 331.7 MB, free: 8.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01489, allocations: 4 kB / 331.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002576/0.01515, allocations: 68 kB / 331.8 MB, free: 8.379 MB / 298.7 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.0006197/0.01577, allocations: 1.005 MB / 332.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004453/0.01622, allocations: 327.7 kB / 333.1 MB, free: 7.004 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01622, allocations: 0 / 333.1 MB, free: 7.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.01641, allocations: 234.5 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.01675, allocations: 58.8 kB / 333.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.01909, allocations: 2.65 MB / 336 MB, free: 3.938 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.01928, allocations: 146.8 kB / 336.2 MB, free: 3.773 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.636e-05/0.01935, allocations: 26.27 kB / 336.2 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.825e-05/0.01944, allocations: 76.48 kB / 336.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.01944, allocations: 0 / 336.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.04343, allocations: 6.093 MB / 342.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.306/7.35, allocations: 13.11 kB / 342.4 MB, free: 13.72 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins/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: 9.083743312396109]