Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0007945/0.0007945, allocations: 79.69 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.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.0007712/0.0007712, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8444/0.8444, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.263e-05, allocations: 2.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002366/0.002378, allocations: 2.416 MB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.003579, allocations: 1.088 MB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.003687, allocations: 7.938 kB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002336/0.00392, allocations: 67.42 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003584/0.004279, allocations: 194.9 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.004565, allocations: 183.5 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003632/0.004928, allocations: 0.5295 MB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.00506, allocations: 60.91 kB / 329.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003318/0.005392, allocations: 331.3 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.0056, allocations: 227.5 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.227e-05/0.005642, allocations: 40 kB / 329.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.00581, allocations: 135.8 kB / 329.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.078e-05/0.005901, allocations: 123.6 kB / 329.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.897e-05/0.00599, allocations: 151.6 kB / 330.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.006424, allocations: 0.588 MB / 330.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.006426, allocations: 4 kB / 330.7 MB, free: 9.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.006427, allocations: 0 / 330.7 MB, free: 9.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.006432, allocations: 0 / 330.7 MB, free: 9.82 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008096/0.007242, allocations: 0.6258 MB / 331.3 MB, free: 9.164 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.007275, allocations: 12.03 kB / 331.3 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.629e-05/0.007331, allocations: 70.72 kB / 331.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.007536, allocations: 68.67 kB / 331.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.007854, allocations: 265.2 kB / 331.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.007955, allocations: 144 kB / 331.8 MB, free: 8.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.676e-05/0.008002, allocations: 36.33 kB / 331.9 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.008515, allocations: 447.2 kB / 332.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.00853, allocations: 4.125 kB / 332.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.00856, allocations: 15.94 kB / 332.3 MB, free: 8.047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.008566, allocations: 8 kB / 332.3 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005559/0.009122, allocations: 458.3 kB / 332.8 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.01018, allocations: 0.8541 MB / 333.6 MB, free: 6.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.01071, allocations: 362.3 kB / 334 MB, free: 6.332 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.01098, allocations: 202.3 kB / 334.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.011, allocations: 8.688 kB / 334.2 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.01103, allocations: 39 kB / 334.2 MB, free: 6.078 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.462e-06/0.01103, allocations: 4 kB / 334.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.003118/0.01415, allocations: 1.929 MB / 336.2 MB, free: 4.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.01419, allocations: 81.61 kB / 336.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.01439, allocations: 273.8 kB / 336.5 MB, free: 3.715 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.01442, allocations: 33.7 kB / 336.5 MB, free: 3.676 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.01449, allocations: 145.2 kB / 336.7 MB, free: 3.527 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.514e-05/0.01458, allocations: 194.4 kB / 336.9 MB, free: 3.336 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-05/0.01468, allocations: 90.17 kB / 337 MB, free: 3.242 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.01476, allocations: 342.8 kB / 337.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.01502, allocations: 192.9 kB / 337.5 MB, free: 2.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002937/0.01531, allocations: 265.7 kB / 337.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004812/0.01579, allocations: 383.6 kB / 338.1 MB, free: 2.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.0158, allocations: 4 kB / 338.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007312/0.01653, allocations: 0.5965 MB / 338.7 MB, free: 1.445 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.01654, allocations: 4 kB / 338.7 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.01654, allocations: 4 kB / 338.7 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004551/0.017, allocations: 303.3 kB / 339 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.01716, allocations: 67.95 kB / 339.1 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002343/0.0195, allocations: 2.805 MB / 341.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.01964, allocations: 28 kB / 341.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.01967, allocations: 16 kB / 341.9 MB, free: 14.12 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.01979, allocations: 165.8 kB / 342.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.01984, allocations: 35.75 kB / 342.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.01989, allocations: 47.61 kB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01989, allocations: 8 kB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.01989, allocations: 0 / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.0199, allocations: 3.984 kB / 342.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.0212, allocations: 1.181 MB / 343.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.02121, allocations: 0 / 343.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.02137, allocations: 71.88 kB / 343.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003794/0.02175, allocations: 280.7 kB / 343.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.02177, allocations: 15.98 kB / 343.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/0.02393, allocations: 2.711 MB / 346.4 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.02393, allocations: 7.969 kB / 346.5 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.02502, allocations: 0.941 MB / 347.4 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.02518, allocations: 79.77 kB / 347.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.02522, allocations: 15.98 kB / 347.5 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.02535, allocations: 27.97 kB / 347.5 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.02547, allocations: 80.42 kB / 347.6 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.02549, allocations: 19.98 kB / 347.6 MB, free: 8.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001381/0.02563, allocations: 205.2 kB / 347.8 MB, free: 8.035 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02563, allocations: 0 / 347.8 MB, free: 8.035 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003813/0.02601, allocations: 147.9 kB / 348 MB, free: 7.891 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/0.02796, allocations: 1.807 MB / 349.8 MB, free: 6.207 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008316/0.02879, allocations: 0.664 MB / 350.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.02879, allocations: 4 kB / 350.4 MB, free: 5.523 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004538/0.02925, allocations: 460.5 kB / 350.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.02953, allocations: 48.36 kB / 350.9 MB, free: 5.016 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/0.03335, allocations: 3.772 MB / 354.7 MB, free: 1.152 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001298/0.03348, allocations: 190.9 kB / 354.9 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001481/0.03362, allocations: 74.91 kB / 355 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.03376, allocations: 116.4 kB / 355.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of SimCode: time 4.71e-07/0.03376, allocations: 0 / 355.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02313/0.05688, allocations: 11.74 MB / 366.8 MB, free: 5.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.539/7.596, allocations: 3.938 kB / 366.8 MB, free: 5.086 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.18627181649208]