Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001401/0.001401, allocations: 111.1 kB / 20.44 MB, free: 1.34 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.001457/0.001457, allocations: 209.1 kB / 23.72 MB, free: 4.527 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.358/1.358, allocations: 230.6 MB / 257.5 MB, free: 7.824 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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 51.86 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2267, allocations: 53.35 MB / 431.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003913/0.2307, allocations: 2.408 MB / 433.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.2325, allocations: 1.088 MB / 434.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.2326, allocations: 11.88 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000294/0.2329, allocations: 63.48 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005275/0.2335, allocations: 191.3 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.2339, allocations: 179.6 kB / 435 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006704/0.2346, allocations: 0.5063 MB / 435.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.2348, allocations: 69.12 kB / 435.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000369/0.2351, allocations: 243.3 kB / 435.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004119/0.2356, allocations: 287.1 kB / 436.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.404e-05/0.2357, allocations: 40 kB / 436.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002631/0.2359, allocations: 135.9 kB / 436.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.2361, allocations: 119.7 kB / 436.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.2362, allocations: 167.3 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.2369, allocations: 0.5543 MB / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2369, allocations: 0 / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2369, allocations: 4 kB / 437.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.2369, allocations: 4 kB / 437.1 MB, free: 0.6328 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00138/0.2383, allocations: 0.6297 MB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2383, allocations: 12.03 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.89e-05/0.2384, allocations: 74.66 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004022/0.2388, allocations: 64.67 kB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005743/0.2394, allocations: 259.1 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.2396, allocations: 144 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.642e-05/0.2397, allocations: 36.31 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000873/0.2405, allocations: 442.6 kB / 438.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.2405, allocations: 7.938 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.2406, allocations: 16 kB / 438.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.2406, allocations: 8 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.2416, allocations: 462.2 kB / 439.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.2434, allocations: 0.858 MB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008554/0.2443, allocations: 360.9 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004807/0.2447, allocations: 202.1 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.2448, allocations: 4.625 kB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.2448, allocations: 46.92 kB / 440.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.2448, allocations: 0 / 440.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005466/0.2503, allocations: 1.917 MB / 442.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.2503, allocations: 85.61 kB / 442.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.2507, allocations: 268.9 kB / 442.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.2508, allocations: 37.7 kB / 443 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2509, allocations: 145.2 kB / 443.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.251, allocations: 194.3 kB / 443.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.2512, allocations: 90.17 kB / 443.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2514, allocations: 338.8 kB / 443.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004602/0.2518, allocations: 196.9 kB / 443.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.2523, allocations: 269.7 kB / 444.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008677/0.2532, allocations: 383.3 kB / 444.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2532, allocations: 3.938 kB / 444.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001321/0.2545, allocations: 0.5965 MB / 445.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2545, allocations: 7.938 kB / 445.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2545, allocations: 0 / 445.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008473/0.2554, allocations: 310.5 kB / 445.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.2557, allocations: 67.89 kB / 445.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004117/0.2598, allocations: 2.808 MB / 448.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.2602, allocations: 27.97 kB / 448.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.2602, allocations: 16 kB / 448.4 MB, free: 4.922 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002431/0.2605, allocations: 169.8 kB / 448.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.474e-05/0.2606, allocations: 31.81 kB / 448.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.2607, allocations: 47.61 kB / 448.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.2607, allocations: 4 kB / 448.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2607, allocations: 4 kB / 448.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.2607, allocations: 7.922 kB / 448.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.2631, allocations: 1.175 MB / 449.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2631, allocations: 0 / 449.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.2634, allocations: 71.88 kB / 449.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007944/0.2642, allocations: 288.5 kB / 450.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.2643, allocations: 15.98 kB / 450.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003908/0.2682, allocations: 2.712 MB / 452.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2682, allocations: 0 / 452.9 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.2702, allocations: 0.941 MB / 453.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.2704, allocations: 79.77 kB / 453.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.013e-05/0.2704, allocations: 19.92 kB / 453.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003257/0.2708, allocations: 28.11 kB / 454 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.271, allocations: 76.28 kB / 454 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.271, allocations: 19.98 kB / 454.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002678/0.2713, allocations: 200.5 kB / 454.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2713, allocations: 0 / 454.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006423/0.2719, allocations: 151.9 kB / 454.4 MB, free: 14.7 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.003647/0.2756, allocations: 1.816 MB / 456.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.2771, allocations: 0.6635 MB / 456.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2771, allocations: 0 / 456.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008584/0.278, allocations: 460.2 kB / 457.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.2785, allocations: 42.05 kB / 457.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006273/0.2847, allocations: 3.8 MB / 461.2 MB, free: 7.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.285, allocations: 194.8 kB / 461.4 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002589/0.2852, allocations: 78.86 kB / 461.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.2854, allocations: 111.3 kB / 461.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2854, allocations: 0 / 461.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04658/0.332, allocations: 11.72 MB / 473.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.69, allocations: 0 / 473.3 MB, free: 11.89 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.018701085995417]