Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008639/0.0008639, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007805/0.0007805, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.858/0.858, allocations: 177 MB / 204.1 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.473e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003113/0.003138, allocations: 2.344 MB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.004508, allocations: 1.01 MB / 327.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.004627, allocations: 11.94 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.004914, allocations: 51.55 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.005233, allocations: 164 kB / 328.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.005477, allocations: 163.6 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.005814, allocations: 486.4 kB / 328.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.005944, allocations: 44.91 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.006159, allocations: 275.5 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.006373, allocations: 211.5 kB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.006417, allocations: 36 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.00658, allocations: 135.8 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.006678, allocations: 103.7 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.847e-05/0.006766, allocations: 135.7 kB / 329.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.007188, allocations: 0.5259 MB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.007192, allocations: 0 / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.007193, allocations: 0 / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.007198, allocations: 0 / 330.2 MB, free: 10.22 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.0009129/0.008111, allocations: 0.5945 MB / 330.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.008155, allocations: 11.98 kB / 330.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.578e-05/0.008211, allocations: 66.73 kB / 330.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.008396, allocations: 48.72 kB / 330.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.008758, allocations: 247.2 kB / 331.1 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.008863, allocations: 140 kB / 331.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.897e-05/0.008902, allocations: 28.38 kB / 331.3 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.009356, allocations: 416.9 kB / 331.7 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.009371, allocations: 8.125 kB / 331.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.68e-05/0.009398, allocations: 15.94 kB / 331.7 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.009406, allocations: 8 kB / 331.7 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000503/0.009909, allocations: 406.3 kB / 332.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.01117, allocations: 1.126 MB / 333.2 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/0.01162, allocations: 326.4 kB / 333.6 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.01185, allocations: 164.8 kB / 333.7 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.01188, allocations: 8.719 kB / 333.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.0119, allocations: 30.56 kB / 333.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.893e-06/0.0119, allocations: 0 / 333.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002782/0.01468, allocations: 1.675 MB / 335.4 MB, free: 4.684 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.01473, allocations: 84.86 kB / 335.5 MB, free: 4.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.01494, allocations: 258.4 kB / 335.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.01497, allocations: 33.7 kB / 335.8 MB, free: 4.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.01504, allocations: 136.9 kB / 335.9 MB, free: 4.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.14e-05/0.01512, allocations: 162.6 kB / 336.1 MB, free: 3.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.643e-05/0.01521, allocations: 90.12 kB / 336.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.007e-05/0.0153, allocations: 330.8 kB / 336.5 MB, free: 3.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.01552, allocations: 164.9 kB / 336.7 MB, free: 3.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002686/0.01579, allocations: 252.2 kB / 336.9 MB, free: 3.121 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004113/0.0162, allocations: 344.2 kB / 337.3 MB, free: 2.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.0162, allocations: 0 / 337.3 MB, free: 2.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009708/0.01718, allocations: 0.5371 MB / 337.8 MB, free: 2.227 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.01719, allocations: 4 kB / 337.8 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.0172, allocations: 4 kB / 337.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000501/0.0177, allocations: 300.7 kB / 338.1 MB, free: 1.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.01785, allocations: 59.89 kB / 338.1 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002531/0.02038, allocations: 2.746 MB / 340.9 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.02053, allocations: 23.97 kB / 340.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.135e-05/0.02056, allocations: 20.06 kB / 340.9 MB, free: 14.95 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.0001498/0.02071, allocations: 161.7 kB / 341.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.987e-05/0.02076, allocations: 27.81 kB / 341.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.02081, allocations: 42.98 kB / 341.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.02081, allocations: 7.938 kB / 341.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.02082, allocations: 0 / 341.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.02082, allocations: 0 / 341.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.02202, allocations: 1.023 MB / 342.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.02202, allocations: 0 / 342.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.02214, allocations: 55.89 kB / 342.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000406/0.02255, allocations: 276.7 kB / 342.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.02257, allocations: 15.98 kB / 342.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.02488, allocations: 2.702 MB / 345.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.02488, allocations: 8 kB / 345.2 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009224/0.0258, allocations: 0.8003 MB / 346 MB, free: 9.652 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.0259, allocations: 67.81 kB / 346.1 MB, free: 9.586 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.02593, allocations: 12 kB / 346.1 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.02605, allocations: 23.97 kB / 346.1 MB, free: 9.551 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.02617, allocations: 67.81 kB / 346.2 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.02619, allocations: 15.98 kB / 346.2 MB, free: 9.469 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.02632, allocations: 188.3 kB / 346.4 MB, free: 9.285 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02632, allocations: 0 / 346.4 MB, free: 9.285 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004115/0.02673, allocations: 139.9 kB / 346.5 MB, free: 9.148 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.001773/0.0285, allocations: 1.676 MB / 348.2 MB, free: 7.574 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008345/0.02934, allocations: 0.5943 MB / 348.8 MB, free: 6.969 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.02934, allocations: 0 / 348.8 MB, free: 6.969 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.02978, allocations: 421.5 kB / 349.2 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.03009, allocations: 32.8 kB / 349.3 MB, free: 6.512 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00384/0.03393, allocations: 3.355 MB / 352.6 MB, free: 3.035 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.03407, allocations: 171.8 kB / 352.8 MB, free: 2.852 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.03424, allocations: 70.92 kB / 352.9 MB, free: 2.781 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.03436, allocations: 96.44 kB / 352.9 MB, free: 2.688 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.03436, allocations: 0 / 352.9 MB, free: 2.688 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.05952, allocations: 10.61 MB / 363.6 MB, free: 8.125 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.048, allocations: 6.75 kB / 363.6 MB, free: 8.121 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.653101773932576]