Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0008195/0.0008195, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008305/0.0008305, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8783/0.8783, allocations: 177.1 MB / 204.3 MB, free: 5.715 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.623e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002985/0.003012, allocations: 2.337 MB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.004497, allocations: 1.018 MB / 327.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.004651, allocations: 4 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.004979, allocations: 67.42 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004807/0.00546, allocations: 164 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.005861, allocations: 159.6 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000445/0.006306, allocations: 486.4 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.00647, allocations: 44.92 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003346/0.006804, allocations: 283.5 kB / 329.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.007061, allocations: 207.5 kB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.007111, allocations: 40 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.00732, allocations: 119.9 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.007432, allocations: 115.6 kB / 329.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.007532, allocations: 131.7 kB / 329.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005099/0.008042, allocations: 0.5219 MB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.008045, allocations: 0 / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.008047, allocations: 4 kB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.008052, allocations: 4 kB / 330.2 MB, free: 10.26 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.000877/0.008929, allocations: 0.5945 MB / 330.8 MB, free: 9.637 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.008972, allocations: 12.03 kB / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.131e-05/0.009033, allocations: 62.72 kB / 330.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.009248, allocations: 52.73 kB / 330.9 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.009645, allocations: 246.8 kB / 331.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.009765, allocations: 144 kB / 331.3 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.991e-05/0.009815, allocations: 28.38 kB / 331.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005165/0.01033, allocations: 401 kB / 331.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.01035, allocations: 8.141 kB / 331.7 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.01038, allocations: 15.92 kB / 331.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.01039, allocations: 11.98 kB / 331.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005178/0.0109, allocations: 418.2 kB / 332.2 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.01228, allocations: 1.123 MB / 333.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.01274, allocations: 315.6 kB / 333.6 MB, free: 6.688 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.01297, allocations: 172.7 kB / 333.8 MB, free: 6.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.01299, allocations: 4.719 kB / 333.8 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.01302, allocations: 42.5 kB / 333.8 MB, free: 6.461 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.994e-06/0.01302, allocations: 0 / 333.8 MB, free: 6.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.0028/0.01582, allocations: 1.663 MB / 335.5 MB, free: 4.738 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.01587, allocations: 88.86 kB / 335.6 MB, free: 4.633 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.01608, allocations: 258.4 kB / 335.8 MB, free: 4.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.01611, allocations: 33.7 kB / 335.9 MB, free: 4.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.01618, allocations: 136.9 kB / 336 MB, free: 4.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.869e-05/0.01626, allocations: 158.8 kB / 336.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.451e-05/0.01635, allocations: 86.12 kB / 336.2 MB, free: 3.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.01644, allocations: 338.8 kB / 336.6 MB, free: 3.602 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.01666, allocations: 160.9 kB / 336.7 MB, free: 3.445 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.01692, allocations: 256.2 kB / 337 MB, free: 3.172 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004153/0.01733, allocations: 336.2 kB / 337.3 MB, free: 2.828 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01733, allocations: 0 / 337.3 MB, free: 2.828 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006761/0.01801, allocations: 0.5411 MB / 337.8 MB, free: 2.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.01803, allocations: 8 kB / 337.9 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.01804, allocations: 3.984 kB / 337.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004738/0.01851, allocations: 292.7 kB / 338.1 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.01865, allocations: 55.89 kB / 338.2 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/0.02112, allocations: 2.762 MB / 341 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.02126, allocations: 27.92 kB / 341 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.02129, allocations: 15.98 kB / 341 MB, free: 15 MB / 314.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: 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.02142, allocations: 157.7 kB / 341.2 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.604e-05/0.02146, allocations: 27.81 kB / 341.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.627e-05/0.02151, allocations: 47.05 kB / 341.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.02151, allocations: 8 kB / 341.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.02152, allocations: 0 / 341.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.02152, allocations: 3.984 kB / 341.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.02266, allocations: 1.015 MB / 342.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.02266, allocations: 0 / 342.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.02278, allocations: 47.97 kB / 342.3 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004021/0.02319, allocations: 288.6 kB / 342.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.02321, allocations: 11.98 kB / 342.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/0.02547, allocations: 2.7 MB / 345.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.02547, allocations: 7.922 kB / 345.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009287/0.0264, allocations: 0.7925 MB / 346.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.7e-05/0.0265, allocations: 71.94 kB / 346.2 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.02653, allocations: 8 kB / 346.2 MB, free: 9.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.02665, allocations: 23.97 kB / 346.2 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.02677, allocations: 71.75 kB / 346.3 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.02679, allocations: 23.98 kB / 346.3 MB, free: 9.512 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001372/0.02693, allocations: 184.2 kB / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.02693, allocations: 0 / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004288/0.02736, allocations: 139.9 kB / 346.6 MB, free: 9.195 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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): 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.001833/0.02919, allocations: 1.679 MB / 348.3 MB, free: 7.648 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008718/0.03006, allocations: 0.5981 MB / 348.9 MB, free: 7.039 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.03007, allocations: 0 / 348.9 MB, free: 7.039 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004172/0.03048, allocations: 418.1 kB / 349.3 MB, free: 6.617 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.03082, allocations: 39.92 kB / 349.3 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.03438, allocations: 3.359 MB / 352.7 MB, free: 3.102 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.03453, allocations: 179.7 kB / 352.9 MB, free: 2.906 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.03469, allocations: 70.92 kB / 352.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.03481, allocations: 88.45 kB / 353 MB, free: 2.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.03482, allocations: 0 / 353 MB, free: 2.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.0595, allocations: 10.63 MB / 363.6 MB, free: 8.195 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.474/7.533, allocations: 16.77 kB / 363.7 MB, free: 8.191 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.152425529435277]