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.001246/0.001246, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001383/0.001383, allocations: 211.7 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001557/0.001557, allocations: 43.94 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2398, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003753/0.2435, allocations: 2.329 MB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.2453, allocations: 1.026 MB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.2454, allocations: 4 kB / 434.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.2456, allocations: 67.48 kB / 434.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004051/0.246, allocations: 151 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.2464, allocations: 163.7 kB / 434.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.2469, allocations: 474.7 kB / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.247, allocations: 48.91 kB / 435.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002272/0.2473, allocations: 203.5 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003478/0.2476, allocations: 251.2 kB / 435.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.178e-05/0.2477, allocations: 40 kB / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.2479, allocations: 127.9 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.248, allocations: 111.7 kB / 436 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.2482, allocations: 147.4 kB / 436.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006021/0.2488, allocations: 0.496 MB / 436.7 MB, free: 1.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2488, allocations: 3.938 kB / 436.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2488, allocations: 0 / 436.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2488, allocations: 0 / 436.7 MB, free: 1.051 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.001212/0.25, allocations: 0.6023 MB / 437.3 MB, free: 428 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2501, allocations: 8.031 kB / 437.3 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.454e-05/0.2501, allocations: 66.72 kB / 437.3 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003095/0.2504, allocations: 48.73 kB / 437.4 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004943/0.2509, allocations: 235.7 kB / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.2511, allocations: 152 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-05/0.2512, allocations: 24.38 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007734/0.252, allocations: 412.3 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.252, allocations: 7.953 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-05/0.252, allocations: 12 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.252, allocations: 4 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000891/0.2529, allocations: 410.2 kB / 438.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.2551, allocations: 1.142 MB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006975/0.2558, allocations: 316.6 kB / 440.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003886/0.2562, allocations: 164.7 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.2562, allocations: 8.719 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.2562, allocations: 42.5 kB / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.523e-06/0.2562, allocations: 0 / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004742/0.261, allocations: 1.671 MB / 441.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.261, allocations: 84.86 kB / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.2613, allocations: 247.4 kB / 442.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.2614, allocations: 41.7 kB / 442.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.2615, allocations: 136.8 kB / 442.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.2616, allocations: 154.9 kB / 442.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.2618, allocations: 98 kB / 442.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2619, allocations: 330.8 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.2623, allocations: 164.8 kB / 443.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.2627, allocations: 251.6 kB / 443.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000719/0.2635, allocations: 339.2 kB / 443.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2635, allocations: 0 / 443.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001172/0.2646, allocations: 0.5396 MB / 444.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.2647, allocations: 8.125 kB / 444.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2647, allocations: 7.938 kB / 444.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008537/0.2655, allocations: 292.6 kB / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.2658, allocations: 59.89 kB / 444.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/0.2699, allocations: 2.751 MB / 447.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.2702, allocations: 24.02 kB / 447.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/0.2702, allocations: 19.98 kB / 447.4 MB, free: 5.793 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.0002162/0.2705, allocations: 161.6 kB / 447.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.049e-05/0.2706, allocations: 35.8 kB / 447.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.508e-05/0.2706, allocations: 39 kB / 447.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.2706, allocations: 4 kB / 447.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2706, allocations: 0 / 447.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2707, allocations: 4.047 kB / 447.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.2726, allocations: 1.015 MB / 448.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2726, allocations: 4 kB / 448.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.2729, allocations: 47.95 kB / 448.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007543/0.2736, allocations: 272.7 kB / 449 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.2737, allocations: 15.92 kB / 449 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003851/0.2775, allocations: 2.719 MB / 451.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2775, allocations: 4 kB / 451.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.2791, allocations: 0.7961 MB / 452.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000166/0.2793, allocations: 71.8 kB / 452.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.289e-05/0.2793, allocations: 19.88 kB / 452.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.2796, allocations: 24.11 kB / 452.7 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.2798, allocations: 67.86 kB / 452.7 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.2798, allocations: 15.98 kB / 452.7 MB, free: 308 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002337/0.28, allocations: 180.5 kB / 452.9 MB, free: 128 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.28, allocations: 0 / 452.9 MB, free: 128 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005903/0.2806, allocations: 136 kB / 453.1 MB, free: 15.99 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.003348/0.284, allocations: 1.678 MB / 454.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.2853, allocations: 0.5939 MB / 455.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2853, allocations: 0 / 455.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007293/0.286, allocations: 417.8 kB / 455.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.2864, allocations: 54.61 kB / 455.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005334/0.2917, allocations: 3.398 MB / 459.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001758/0.2919, allocations: 175.8 kB / 459.4 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002139/0.2921, allocations: 66.92 kB / 459.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.2923, allocations: 91.39 kB / 459.5 MB, free: 9.5 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2923, allocations: 4 kB / 459.5 MB, free: 9.496 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04291/0.3352, allocations: 10.58 MB / 470.1 MB, free: 14.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.53, allocations: 8 kB / 470.1 MB, free: 14.98 MB / 382.1 MB " [Timeout remaining time 647] (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/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_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: 14.875025899993489]