Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 51.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2559, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004041/0.26, allocations: 2.453 MB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002074/0.262, allocations: 0.9754 MB / 426 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.2623, allocations: 7.938 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.2626, allocations: 47.56 kB / 426.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006654/0.2632, allocations: 159 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.2637, allocations: 187.3 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006492/0.2643, allocations: 478.4 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.2645, allocations: 61.14 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004301/0.265, allocations: 211.4 kB / 427.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.2654, allocations: 259.1 kB / 427.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.2655, allocations: 44 kB / 427.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.2658, allocations: 127.8 kB / 427.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.266, allocations: 103.7 kB / 427.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002506/0.2662, allocations: 191.1 kB / 427.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007639/0.267, allocations: 0.4985 MB / 428.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.267, allocations: 0 / 428.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.267, allocations: 0 / 428.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.267, allocations: 0 / 428.4 MB, free: 8.816 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.001505/0.2685, allocations: 0.6026 MB / 429 MB, free: 8.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.2686, allocations: 12.03 kB / 429 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.618e-05/0.2687, allocations: 66.72 kB / 429.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003697/0.269, allocations: 60.67 kB / 429.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005585/0.2696, allocations: 254.9 kB / 429.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001625/0.2698, allocations: 144 kB / 429.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.2698, allocations: 32.38 kB / 429.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008397/0.2707, allocations: 416.8 kB / 429.9 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.2707, allocations: 7.953 kB / 430 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.2707, allocations: 12 kB / 430 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2707, allocations: 15.94 kB / 430 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.2718, allocations: 470.2 kB / 430.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.2738, allocations: 0.9126 MB / 431.4 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008494/0.2746, allocations: 368.5 kB / 431.7 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005309/0.2751, allocations: 214 kB / 431.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.381e-05/0.2752, allocations: 16.42 kB / 431.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.2752, allocations: 39.12 kB / 432 MB, free: 5.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.934e-06/0.2752, allocations: 0 / 432 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.0054/0.2806, allocations: 1.929 MB / 433.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.835e-05/0.2807, allocations: 85.61 kB / 434 MB, free: 2.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.2811, allocations: 267 kB / 434.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.464e-05/0.2811, allocations: 37.7 kB / 434.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.2813, allocations: 133.3 kB / 434.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.2814, allocations: 194.3 kB / 434.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.2816, allocations: 94.17 kB / 434.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.2818, allocations: 346.8 kB / 435 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004679/0.2822, allocations: 188.9 kB / 435.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005001/0.2827, allocations: 247.9 kB / 435.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000861/0.2836, allocations: 391.3 kB / 435.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2836, allocations: 0 / 435.8 MB, free: 1.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00135/0.2849, allocations: 0.6042 MB / 436.5 MB, free: 464 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.285, allocations: 15.22 kB / 436.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.285, allocations: 0 / 436.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007813/0.2858, allocations: 263.8 kB / 436.7 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.2861, allocations: 63.89 kB / 436.8 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00436/0.2904, allocations: 2.827 MB / 439.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.2908, allocations: 32 kB / 439.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.385e-05/0.2908, allocations: 19.98 kB / 439.7 MB, free: 13.13 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.0002396/0.2911, allocations: 165.8 kB / 439.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.062e-05/0.2912, allocations: 27.81 kB / 439.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.2913, allocations: 51.3 kB / 439.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.2913, allocations: 4 kB / 439.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.2913, allocations: 0 / 439.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.2913, allocations: 3.984 kB / 439.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002492/0.2938, allocations: 1.234 MB / 441.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.2938, allocations: 4 kB / 441.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.2941, allocations: 67.88 kB / 441.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006895/0.2948, allocations: 236.7 kB / 441.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.2949, allocations: 23.92 kB / 441.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00424/0.2991, allocations: 2.744 MB / 444.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2991, allocations: 0 / 444.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.3012, allocations: 0.9412 MB / 445.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.3014, allocations: 75.91 kB / 445.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/0.3015, allocations: 15.94 kB / 445.2 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.3018, allocations: 27.97 kB / 445.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.302, allocations: 68.3 kB / 445.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.302, allocations: 19.98 kB / 445.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002659/0.3023, allocations: 200.6 kB / 445.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3023, allocations: 0 / 445.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006772/0.303, allocations: 151.9 kB / 445.7 MB, free: 6.895 MB / 350.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.002588/0.3056, allocations: 1.562 MB / 447.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3071, allocations: 0.6712 MB / 447.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3071, allocations: 4 kB / 447.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009119/0.308, allocations: 460.1 kB / 448.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.3085, allocations: 36.42 kB / 448.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006389/0.3149, allocations: 3.808 MB / 452.2 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.3154, allocations: 0.8006 MB / 453 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.3156, allocations: 70.92 kB / 453.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.3158, allocations: 99.39 kB / 453.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3158, allocations: 0 / 453.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04834/0.3641, allocations: 11.48 MB / 464.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.07, allocations: 6.922 kB / 464.7 MB, free: 3.875 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.323785096872598]