Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008026/0.0008026, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003654/0.003654, allocations: 161.6 kB / 24.69 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7888/0.7888, allocations: 158.6 MB / 186.5 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.283e-05/1.443e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002539/0.002553, allocations: 2.214 MB / 300.6 MB, free: 1.297 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.003702, allocations: 0.9294 MB / 301.6 MB, free: 368 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.657e-05/0.003799, allocations: 11.94 kB / 301.6 MB, free: 356 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.003968, allocations: 43.58 kB / 301.6 MB, free: 312 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003506/0.004319, allocations: 143.1 kB / 301.8 MB, free: 168 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1168/0.1211, allocations: 174.1 kB / 301.9 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005568/0.1216, allocations: 425.9 kB / 302.3 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.1218, allocations: 43.08 kB / 302.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/0.1221, allocations: 253.1 kB / 302.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.1224, allocations: 194.7 kB / 302.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.1224, allocations: 32.56 kB / 302.9 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000247/0.1227, allocations: 111.6 kB / 303 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.1228, allocations: 101.1 kB / 303.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.1229, allocations: 114.8 kB / 303.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005864/0.1235, allocations: 493.1 kB / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1235, allocations: 1.516 kB / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1235, allocations: 1.25 kB / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.1235, allocations: 3.844 kB / 303.7 MB, free: 13.13 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008374/0.1243, allocations: 0.5641 MB / 304.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1244, allocations: 14.67 kB / 304.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.366e-05/0.1244, allocations: 65.53 kB / 304.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.1246, allocations: 48.34 kB / 304.4 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.125, allocations: 247.6 kB / 304.6 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-05/0.1251, allocations: 144.5 kB / 304.7 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.101e-05/0.1251, allocations: 25.89 kB / 304.8 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004853/0.1256, allocations: 403.6 kB / 305.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1256, allocations: 6.656 kB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.1256, allocations: 18.19 kB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.1256, allocations: 5.938 kB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005606/0.1262, allocations: 413 kB / 305.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.1275, allocations: 1.102 MB / 306.7 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.128, allocations: 336.9 kB / 307 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.1282, allocations: 169 kB / 307.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.1282, allocations: 7.188 kB / 307.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.1282, allocations: 37.75 kB / 307.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.1282, allocations: 3.344 kB / 307.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.002687/0.1309, allocations: 1.682 MB / 308.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.131, allocations: 90 kB / 309 MB, free: 10.51 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.1311, allocations: 242.3 kB / 309.2 MB, free: 10.37 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.1312, allocations: 36.11 kB / 309.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.1312, allocations: 137.8 kB / 309.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.263e-05/0.1313, allocations: 152.3 kB / 309.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.969e-05/0.1314, allocations: 85.64 kB / 309.6 MB, free: 10.04 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.873e-05/0.1314, allocations: 339.1 kB / 310 MB, free: 9.719 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.1316, allocations: 165.7 kB / 310.1 MB, free: 9.664 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.1319, allocations: 257 kB / 310.4 MB, free: 9.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004291/0.1323, allocations: 350.2 kB / 310.7 MB, free: 9.363 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1323, allocations: 0.625 kB / 310.7 MB, free: 9.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006838/0.133, allocations: 0.5502 MB / 311.3 MB, free: 9.137 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.133, allocations: 5.5 kB / 311.3 MB, free: 9.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.133, allocations: 1.375 kB / 311.3 MB, free: 9.137 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004772/0.1335, allocations: 255.3 kB / 311.5 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.1337, allocations: 49.94 kB / 311.6 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.136, allocations: 2.744 MB / 314.3 MB, free: 7.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.1361, allocations: 26.31 kB / 314.4 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.1362, allocations: 18.36 kB / 314.4 MB, free: 7.031 MB / 282.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.0001/0.1363, allocations: 157.1 kB / 314.5 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.1363, allocations: 25.41 kB / 314.6 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.1363, allocations: 42.28 kB / 314.6 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1363, allocations: 3.969 kB / 314.6 MB, free: 6.844 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.1363, allocations: 5.766 kB / 314.6 MB, free: 6.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1363, allocations: 2.391 kB / 314.6 MB, free: 6.84 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.1375, allocations: 0.9924 MB / 315.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1375, allocations: 0 / 315.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1376, allocations: 47.8 kB / 315.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003943/0.138, allocations: 235.6 kB / 315.9 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.138, allocations: 13.33 kB / 315.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002063/0.1401, allocations: 2.699 MB / 318.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1401, allocations: 3.938 kB / 318.6 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009042/0.141, allocations: 0.8168 MB / 319.4 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.982e-05/0.1411, allocations: 61.33 kB / 319.5 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.1411, allocations: 7.781 kB / 319.5 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.1412, allocations: 29.11 kB / 319.5 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.1413, allocations: 67.5 kB / 319.6 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.1414, allocations: 13.05 kB / 319.6 MB, free: 3.762 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.1415, allocations: 183.8 kB / 319.8 MB, free: 3.656 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1415, allocations: 0 / 319.8 MB, free: 3.656 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003947/0.1419, allocations: 138.2 kB / 319.9 MB, free: 3.637 MB / 282.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.001173/0.1431, allocations: 1.421 MB / 321.3 MB, free: 2.691 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007513/0.1438, allocations: 0.5955 MB / 321.9 MB, free: 2.414 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.1438, allocations: 320 / 321.9 MB, free: 2.414 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003972/0.1442, allocations: 420.4 kB / 322.3 MB, free: 2.184 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.1445, allocations: 31.61 kB / 322.4 MB, free: 2.168 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003086/0.1475, allocations: 3.391 MB / 325.7 MB, free: 92 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.1477, allocations: 173.1 kB / 325.9 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.1478, allocations: 57.59 kB / 326 MB, free: 0 / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.148, allocations: 101.9 kB / 326.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of SimCode: time 5.92e-07/0.148, allocations: 1.438 kB / 326.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.1703, allocations: 9.928 MB / 336 MB, free: 8.082 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.843/8.013, allocations: 4 kB / 336 MB, free: 8.078 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.462888395413756]