Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001348/0.001348, allocations: 88.3 kB / 22 MB, free: 4.754 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.001474/0.001474, allocations: 153.8 kB / 25.24 MB, free: 2.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 158.6 MB / 187 MB, free: 6.352 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 51.92 kB / 299.3 MB, free: 6.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1963, allocations: 49.14 MB / 348.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003715/0.2, allocations: 2.216 MB / 350.7 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.2018, allocations: 0.9371 MB / 351.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.202, allocations: 7.938 kB / 351.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001971/0.2022, allocations: 51.58 kB / 351.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004755/0.2026, allocations: 131.2 kB / 351.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.203, allocations: 175.7 kB / 352 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.2035, allocations: 418.8 kB / 352.4 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.2036, allocations: 48.69 kB / 352.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.2038, allocations: 191.4 kB / 352.6 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003124/0.2041, allocations: 207.3 kB / 352.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.2042, allocations: 36 kB / 352.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.2044, allocations: 111.9 kB / 353 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.2045, allocations: 99.72 kB / 353.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.2047, allocations: 143.3 kB / 353.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006564/0.2054, allocations: 452.8 kB / 353.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2054, allocations: 4 kB / 353.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2054, allocations: 0 / 353.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.2054, allocations: 0 / 353.7 MB, free: 10.34 MB / 318.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.00122/0.2066, allocations: 0.5597 MB / 354.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2067, allocations: 15.98 kB / 354.2 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003062/0.207, allocations: 52.73 kB / 354.3 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004728/0.2074, allocations: 245.9 kB / 354.5 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.2076, allocations: 144 kB / 354.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.323e-05/0.2077, allocations: 28.38 kB / 354.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007546/0.2084, allocations: 404.5 kB / 355.1 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2085, allocations: 3.984 kB / 355.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.261e-05/0.2085, allocations: 12 kB / 355.1 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2085, allocations: 8 kB / 355.1 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008809/0.2094, allocations: 414.2 kB / 355.5 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.2115, allocations: 1.065 MB / 356.6 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007047/0.2122, allocations: 330.5 kB / 356.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003887/0.2125, allocations: 168.8 kB / 357.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.2126, allocations: 4.719 kB / 357.1 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.2126, allocations: 38.56 kB / 357.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.2126, allocations: 0 / 357.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004858/0.2175, allocations: 1.679 MB / 358.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.2175, allocations: 84.86 kB / 358.9 MB, free: 4.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.2179, allocations: 250 kB / 359.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.2179, allocations: 41.69 kB / 359.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.218, allocations: 137 kB / 359.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.2182, allocations: 154.7 kB / 359.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.2183, allocations: 82.19 kB / 359.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2185, allocations: 334.8 kB / 359.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/0.2189, allocations: 176.8 kB / 360 MB, free: 3.691 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.2193, allocations: 260.2 kB / 360.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/0.22, allocations: 340.1 kB / 360.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2201, allocations: 4 kB / 360.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001164/0.2212, allocations: 0.5488 MB / 361.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.2212, allocations: 11.98 kB / 361.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2212, allocations: 0 / 361.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007395/0.222, allocations: 244.8 kB / 361.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/0.2222, allocations: 59.84 kB / 361.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00404/0.2263, allocations: 2.716 MB / 364.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.2265, allocations: 24 kB / 364.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.2266, allocations: 16 kB / 364.2 MB, free: 15.33 MB / 334.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.0001824/0.2267, allocations: 169.6 kB / 364.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.682e-05/0.2268, allocations: 27.92 kB / 364.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.983e-05/0.2269, allocations: 42.98 kB / 364.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2269, allocations: 4 kB / 364.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.2269, allocations: 0 / 364.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.2269, allocations: 7.984 kB / 364.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.2288, allocations: 0.9452 MB / 365.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2288, allocations: 0 / 365.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.229, allocations: 43.91 kB / 365.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000686/0.2297, allocations: 240.9 kB / 365.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.2298, allocations: 15.98 kB / 365.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003927/0.2337, allocations: 2.66 MB / 368.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.2337, allocations: 3.984 kB / 368.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.2353, allocations: 0.8241 MB / 369.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.2354, allocations: 63.83 kB / 369.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.2355, allocations: 11.94 kB / 369.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002675/0.2357, allocations: 23.97 kB / 369.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.2359, allocations: 63.88 kB / 369.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.705e-05/0.2359, allocations: 19.92 kB / 369.4 MB, free: 10 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002291/0.2362, allocations: 180.3 kB / 369.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2362, allocations: 0 / 369.6 MB, free: 9.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006071/0.2368, allocations: 139.9 kB / 369.7 MB, free: 9.688 MB / 334.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.0002865/0.2371, allocations: 135.2 kB / 369.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.2384, allocations: 0.602 MB / 370.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2384, allocations: 0 / 370.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007576/0.2391, allocations: 414 kB / 370.8 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004233/0.2396, allocations: 35.92 kB / 370.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.241, allocations: 0.7004 MB / 371.6 MB, free: 7.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.2412, allocations: 171.8 kB / 371.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.2414, allocations: 66.92 kB / 371.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.763e-05/0.2415, allocations: 36.42 kB / 371.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2415, allocations: 0 / 371.9 MB, free: 7.461 MB / 334.1 MB Notification: Performance of Templates: time 0.01311/0.2546, allocations: 6.504 MB / 378.4 MB, free: 0.9453 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 4.444976865896024]