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.001701/0.001701, allocations: 120.4 kB / 18.5 MB, free: 4.578 MB / 14.72 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.002043/0.002043, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 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 1.457/1.457, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001816/0.001816, allocations: 67.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1163, allocations: 53.32 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004543/0.1209, allocations: 2.468 MB / 429.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.1233, allocations: 1.057 MB / 430.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.1235, allocations: 4 kB / 430.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003603/0.1239, allocations: 63.5 kB / 430.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005225/0.1244, allocations: 154.7 kB / 430.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.1249, allocations: 163.7 kB / 430.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006004/0.1255, allocations: 470.7 kB / 431 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.1256, allocations: 48.72 kB / 431.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.1259, allocations: 207.4 kB / 431.3 MB, free: 388 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003574/0.1262, allocations: 247.2 kB / 431.5 MB, free: 140 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.112e-05/0.1263, allocations: 40 kB / 431.5 MB, free: 100 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2149/0.3412, allocations: 128.9 kB / 431.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002296/0.3414, allocations: 94.92 kB / 431.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002478/0.3417, allocations: 179.2 kB / 431.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008662/0.3425, allocations: 0.4946 MB / 432.4 MB, free: 8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3425, allocations: 7.344 kB / 432.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3425, allocations: 0 / 432.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.3425, allocations: 0.5938 kB / 432.4 MB, free: 7.996 MB / 350.1 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.001277/0.3438, allocations: 0.6604 MB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3439, allocations: 12.62 kB / 433.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.88e-05/0.3439, allocations: 66.27 kB / 433.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.3443, allocations: 52.91 kB / 433.2 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000528/0.3448, allocations: 304.7 kB / 433.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.3449, allocations: 86.7 kB / 433.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/0.345, allocations: 36.44 kB / 433.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006592/0.3456, allocations: 381.4 kB / 434 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.3457, allocations: 2.188 kB / 434 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.3457, allocations: 11.59 kB / 434 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.3457, allocations: 9.438 kB / 434 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007812/0.3465, allocations: 418.6 kB / 434.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.3486, allocations: 1.269 MB / 435.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006762/0.3492, allocations: 320 kB / 436 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.3496, allocations: 164.9 kB / 436.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.3496, allocations: 14.33 kB / 436.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.3497, allocations: 39.25 kB / 436.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.3497, allocations: 0 / 436.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004779/0.3544, allocations: 1.892 MB / 438.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/0.3545, allocations: 91.2 kB / 438.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.3548, allocations: 248.4 kB / 438.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.3549, allocations: 36.56 kB / 438.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.355, allocations: 133 kB / 438.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.3551, allocations: 163.1 kB / 438.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.3552, allocations: 90.28 kB / 438.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.3553, allocations: 336.4 kB / 439.2 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.3557, allocations: 164.9 kB / 439.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/0.3561, allocations: 227.9 kB / 439.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006562/0.3567, allocations: 336.5 kB / 439.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3567, allocations: 0 / 439.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001108/0.3578, allocations: 0.5382 MB / 440.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3579, allocations: 5.969 kB / 440.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3579, allocations: 9.594 kB / 440.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008253/0.3587, allocations: 294.2 kB / 440.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.359, allocations: 58.25 kB / 440.8 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.3627, allocations: 2.9 MB / 443.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/0.363, allocations: 22.41 kB / 443.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.892e-05/0.363, allocations: 19.91 kB / 443.8 MB, free: 2.227 MB / 350.1 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.0001995/0.3632, allocations: 156.4 kB / 443.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-05/0.3633, allocations: 34.31 kB / 443.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.675e-05/0.3634, allocations: 41.98 kB / 444 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.3634, allocations: 4.375 kB / 444 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3634, allocations: 1.781 kB / 444 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3634, allocations: 2.719 kB / 444 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.3653, allocations: 1.104 MB / 445.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3653, allocations: 0 / 445.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.3656, allocations: 44.61 kB / 445.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007299/0.3663, allocations: 283.3 kB / 445.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.3663, allocations: 15.11 kB / 445.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003705/0.37, allocations: 2.852 MB / 448.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.37, allocations: 5.25 kB / 448.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.3717, allocations: 0.797 MB / 449.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.372, allocations: 149.4 kB / 449.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.333e-05/0.372, allocations: 15.69 kB / 449.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.3723, allocations: 21.17 kB / 449.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.3725, allocations: 68.67 kB / 449.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.3725, allocations: 20.77 kB / 449.4 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002598/0.3728, allocations: 186.3 kB / 449.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3728, allocations: 0 / 449.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007313/0.3735, allocations: 139.6 kB / 449.7 MB, free: 14.5 MB / 366.1 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.003561/0.3771, allocations: 1.635 MB / 451.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3786, allocations: 0.5949 MB / 451.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3786, allocations: 4.188 kB / 451.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007625/0.3794, allocations: 416.7 kB / 452.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.3799, allocations: 41.69 kB / 452.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005869/0.3858, allocations: 3.407 MB / 455.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.3863, allocations: 0.7775 MB / 456.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002682/0.3866, allocations: 77.38 kB / 456.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.3867, allocations: 90.73 kB / 456.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3867, allocations: 1.344 kB / 456.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0432/0.4299, allocations: 10.63 MB / 467.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.64, allocations: 18.61 kB / 467.4 MB, free: 5.691 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.263811877928674]