Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.000931/0.000931, 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.0009522/0.0009522, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.8513/0.8513, allocations: 173.4 MB / 200.4 MB, free: 9.438 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.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 318.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.849e-05/2.06e-05, allocations: 2.281 kB / 318.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002715/0.002735, allocations: 2.28 MB / 320.7 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.004009, allocations: 0.9362 MB / 321.6 MB, free: 3.016 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.004131, allocations: 7.938 kB / 321.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.004336, allocations: 51.52 kB / 321.7 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004461/0.004782, allocations: 170.9 kB / 321.9 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.005022, allocations: 191.5 kB / 322 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.005362, allocations: 482.3 kB / 322.5 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.005516, allocations: 65.11 kB / 322.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002811/0.005797, allocations: 279.5 kB / 322.9 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.006016, allocations: 211.5 kB / 323.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.499e-05/0.006061, allocations: 36 kB / 323.1 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.00622, allocations: 131.7 kB / 323.2 MB, free: 1.414 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.006328, allocations: 111.7 kB / 323.3 MB, free: 1.305 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.997e-05/0.006428, allocations: 135.6 kB / 323.5 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006831/0.007111, allocations: 0.5298 MB / 324 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.007114, allocations: 0 / 324 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.007116, allocations: 0 / 324 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.007121, allocations: 0 / 324 MB, free: 0.6406 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008384/0.007959, allocations: 0.6096 MB / 324.6 MB, free: 4 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.00801, allocations: 8.969 kB / 324.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.869e-05/0.008069, allocations: 70.67 kB / 324.7 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.008257, allocations: 52.69 kB / 324.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003544/0.008611, allocations: 261.1 kB / 325 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.008717, allocations: 148 kB / 325.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.008765, allocations: 36.33 kB / 325.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/0.009282, allocations: 435.2 kB / 325.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.009296, allocations: 192 / 325.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.009323, allocations: 15.94 kB / 325.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.009329, allocations: 4 kB / 325.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005991/0.009928, allocations: 466.2 kB / 326.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.01106, allocations: 0.8309 MB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005616/0.01162, allocations: 377.2 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.0119, allocations: 214.2 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.01193, allocations: 4.5 kB / 327.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.01195, allocations: 39.06 kB / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.653e-06/0.01195, allocations: 0 / 327.5 MB, free: 12.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.003113/0.01507, allocations: 1.949 MB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.01511, allocations: 81.61 kB / 329.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.01532, allocations: 259.2 kB / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.01535, allocations: 41.64 kB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.262e-05/0.01542, allocations: 141.2 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.878e-05/0.01552, allocations: 182.4 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.01562, allocations: 94.12 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.172e-05/0.01571, allocations: 342.8 kB / 330.6 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.01599, allocations: 200.8 kB / 330.8 MB, free: 9.578 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005527/0.01654, allocations: 269.6 kB / 331 MB, free: 9.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004973/0.01704, allocations: 387.6 kB / 331.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.01704, allocations: 0 / 331.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007496/0.01779, allocations: 0.6004 MB / 332 MB, free: 8.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.01781, allocations: 12.03 kB / 332 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.01782, allocations: 0 / 332 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004631/0.01828, allocations: 254.5 kB / 332.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.01844, allocations: 71.88 kB / 332.4 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/0.02101, allocations: 2.79 MB / 335.1 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.02117, allocations: 36.03 kB / 335.2 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.0212, allocations: 16 kB / 335.2 MB, free: 5.02 MB / 298.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.0001415/0.02134, allocations: 164.7 kB / 335.4 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.02139, allocations: 35.75 kB / 335.4 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.348e-05/0.02144, allocations: 47.3 kB / 335.4 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.02144, allocations: 8 kB / 335.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.02145, allocations: 0 / 335.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.02145, allocations: 4 kB / 335.4 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.02283, allocations: 1.158 MB / 336.6 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.02283, allocations: 4 kB / 336.6 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.023, allocations: 59.89 kB / 336.7 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003832/0.02338, allocations: 249.2 kB / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.02341, allocations: 15.98 kB / 336.9 MB, free: 3.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/0.026, allocations: 2.696 MB / 339.6 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.026, allocations: 3.938 kB / 339.6 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.02712, allocations: 0.9491 MB / 340.6 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.02723, allocations: 71.78 kB / 340.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.491e-05/0.02727, allocations: 12 kB / 340.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.02742, allocations: 31.97 kB / 340.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.02754, allocations: 72.3 kB / 340.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.02756, allocations: 19.98 kB / 340.8 MB, free: 15.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001402/0.0277, allocations: 200.6 kB / 341 MB, free: 15.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0277, allocations: 0 / 341 MB, free: 15.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.02814, allocations: 147.9 kB / 341.1 MB, free: 14.89 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.001475/0.02961, allocations: 1.546 MB / 342.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009195/0.03053, allocations: 0.6834 MB / 343.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.03054, allocations: 3.938 kB / 343.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.03102, allocations: 460.6 kB / 343.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.03134, allocations: 55.58 kB / 343.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.03552, allocations: 3.779 MB / 347.6 MB, free: 8.211 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.0357, allocations: 190.8 kB / 347.8 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001542/0.03585, allocations: 58.95 kB / 347.9 MB, free: 7.945 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.03599, allocations: 104.5 kB / 348 MB, free: 7.844 MB / 314.7 MB Notification: Performance of SimCode: time 1.704e-06/0.03599, allocations: 4 kB / 348 MB, free: 7.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.0645, allocations: 11.01 MB / 359 MB, free: 13.01 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.812/7.876, allocations: 6.062 kB / 359 MB, free: 13.01 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.480304971337318]