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.001278/0.001278, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001497/0.001497, allocations: 214.9 kB / 23.75 MB, free: 4.672 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.402/1.402, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.001848/0.001848, allocations: 59.91 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2185, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004087/0.2226, allocations: 2.478 MB / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.2244, allocations: 1.076 MB / 434.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2245, allocations: 4 kB / 434.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.2248, allocations: 63.5 kB / 434.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004172/0.2252, allocations: 150.7 kB / 434.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003721/0.2256, allocations: 167.2 kB / 435.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.2261, allocations: 486.6 kB / 435.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.2262, allocations: 36.92 kB / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.2265, allocations: 207.5 kB / 435.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.2268, allocations: 255.2 kB / 436.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.132e-05/0.2269, allocations: 36 kB / 436.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.2271, allocations: 131.9 kB / 436.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001474/0.2273, allocations: 107.7 kB / 436.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.2274, allocations: 171.2 kB / 436.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000592/0.228, allocations: 0.4947 MB / 437 MB, free: 0.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.228, allocations: 4 kB / 437 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.228, allocations: 0 / 437 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.228, allocations: 0 / 437 MB, free: 0.8281 MB / 334.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.001166/0.2292, allocations: 0.5906 MB / 437.6 MB, free: 212 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2292, allocations: 12.03 kB / 437.6 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.263e-05/0.2293, allocations: 66.72 kB / 437.7 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002958/0.2296, allocations: 52.69 kB / 437.7 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005137/0.2301, allocations: 243.4 kB / 438 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.2303, allocations: 140 kB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/0.2304, allocations: 36.31 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007322/0.2311, allocations: 386.6 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2311, allocations: 0 / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.2311, allocations: 12 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.2312, allocations: 11.98 kB / 438.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008608/0.232, allocations: 418.2 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.2342, allocations: 1.208 MB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006902/0.2348, allocations: 325.1 kB / 440.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.2352, allocations: 168.8 kB / 440.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.2353, allocations: 7.984 kB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.2353, allocations: 43.22 kB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.793e-06/0.2353, allocations: 0 / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004738/0.24, allocations: 1.663 MB / 442.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.2401, allocations: 84.86 kB / 442.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003372/0.2404, allocations: 254.8 kB / 442.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.376e-05/0.2405, allocations: 33.7 kB / 442.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.2406, allocations: 144.7 kB / 442.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.2407, allocations: 154.7 kB / 443 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.2409, allocations: 90.06 kB / 443.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.241, allocations: 330.8 kB / 443.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.2414, allocations: 168.8 kB / 443.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004219/0.2418, allocations: 225.9 kB / 443.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007093/0.2426, allocations: 343.2 kB / 444.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2426, allocations: 0 / 444.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001186/0.2437, allocations: 0.5396 MB / 444.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.2438, allocations: 10.81 kB / 444.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2438, allocations: 4.125 kB / 444.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/0.2446, allocations: 297.2 kB / 445 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.2448, allocations: 55.91 kB / 445 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004204/0.249, allocations: 2.796 MB / 447.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.2493, allocations: 23.97 kB / 447.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/0.2494, allocations: 16 kB / 447.9 MB, free: 5.512 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.0002138/0.2496, allocations: 165.8 kB / 448 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.168e-05/0.2497, allocations: 31.75 kB / 448.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.647e-05/0.2498, allocations: 39 kB / 448.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.2498, allocations: 7.984 kB / 448.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.2498, allocations: 4 kB / 448.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2498, allocations: 0 / 448.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.2519, allocations: 1.073 MB / 449.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2519, allocations: 0 / 449.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.2521, allocations: 51.95 kB / 449.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008197/0.2529, allocations: 285 kB / 449.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.253, allocations: 15.92 kB / 449.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.257, allocations: 2.736 MB / 452.3 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/0.2571, allocations: 4.031 kB / 452.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.2587, allocations: 0.7963 MB / 453.1 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2588, allocations: 71.77 kB / 453.1 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.176e-05/0.2589, allocations: 15.94 kB / 453.2 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.2592, allocations: 19.97 kB / 453.2 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.2594, allocations: 75.88 kB / 453.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.2594, allocations: 15.98 kB / 453.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.2596, allocations: 180.5 kB / 453.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2596, allocations: 0 / 453.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006136/0.2602, allocations: 135.9 kB / 453.6 MB, free: 15.61 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.003378/0.2636, allocations: 1.652 MB / 455.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.2651, allocations: 0.5821 MB / 455.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.2651, allocations: 4.25 kB / 455.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008195/0.2659, allocations: 417.5 kB / 456.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.2664, allocations: 43.75 kB / 456.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005568/0.272, allocations: 3.41 MB / 459.7 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.2724, allocations: 0.7801 MB / 460.4 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.2727, allocations: 74.91 kB / 460.5 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.2728, allocations: 95.38 kB / 460.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2728, allocations: 0 / 460.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06122/0.3341, allocations: 11.05 MB / 471.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.86, allocations: 8.062 kB / 471.7 MB, free: 13.48 MB / 382.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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: 15.236273030051962]