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.001369/0.001369, allocations: 80.92 kB / 22.29 MB, free: 2.207 MB / 18.57 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.0009954/0.0009954, allocations: 166.5 kB / 25.7 MB, free: 8.414 MB / 18.57 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 0.8168/0.8168, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 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: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 251.5 MB, free: 7.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.415e-05/1.556e-05, allocations: 2.312 kB / 251.5 MB, free: 7.297 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002413/0.002428, allocations: 2.347 MB / 253.8 MB, free: 4.934 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.003731, allocations: 0.9604 MB / 254.8 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.003836, allocations: 3.938 kB / 254.8 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.004018, allocations: 51.58 kB / 254.9 MB, free: 3.902 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003764/0.004394, allocations: 143.1 kB / 255 MB, free: 3.762 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.004645, allocations: 179.6 kB / 255.2 MB, free: 3.586 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.004964, allocations: 426.5 kB / 255.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.005069, allocations: 50.86 kB / 255.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000434/0.005503, allocations: 251.5 kB / 255.9 MB, free: 2.875 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002/0.005703, allocations: 187.6 kB / 256.1 MB, free: 2.691 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.00574, allocations: 35.94 kB / 256.1 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.005889, allocations: 115.9 kB / 256.2 MB, free: 2.543 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.817e-05/0.005977, allocations: 99.69 kB / 256.3 MB, free: 2.445 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.112e-05/0.006058, allocations: 115.7 kB / 256.4 MB, free: 2.332 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.006388, allocations: 370.8 kB / 256.8 MB, free: 1.969 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.00639, allocations: 4 kB / 256.8 MB, free: 1.965 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.00639, allocations: 0 / 256.8 MB, free: 1.965 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.006395, allocations: 4 kB / 256.8 MB, free: 1.961 MB / 234.7 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.0006011/0.006996, allocations: 0.5154 MB / 257.3 MB, free: 1.418 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.805e-05/0.007024, allocations: 19.98 kB / 257.3 MB, free: 1.398 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.007215, allocations: 72.83 kB / 257.4 MB, free: 1.328 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.007458, allocations: 218 kB / 257.6 MB, free: 1.086 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.111e-05/0.007539, allocations: 136 kB / 257.8 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.007579, allocations: 28.38 kB / 257.8 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.007882, allocations: 307.7 kB / 258.1 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.007894, allocations: 4.172 kB / 258.1 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.007915, allocations: 20.12 kB / 258.1 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.007922, allocations: 8 kB / 258.1 MB, free: 0.543 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.008137, allocations: 179.2 kB / 258.3 MB, free: 380 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009218/0.009059, allocations: 0.8161 MB / 259.1 MB, free: 15.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.009282, allocations: 178.4 kB / 259.3 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.97e-05/0.009372, allocations: 89.47 kB / 259.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.009396, allocations: 4 kB / 259.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.009417, allocations: 42.52 kB / 259.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.432e-06/0.009418, allocations: 0 / 259.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.00171/0.01113, allocations: 1.121 MB / 260.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.01116, allocations: 84.86 kB / 260.6 MB, free: 13.91 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.01128, allocations: 212 kB / 260.8 MB, free: 13.69 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.01131, allocations: 37.7 kB / 260.9 MB, free: 13.65 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.92e-05/0.01136, allocations: 128.8 kB / 261 MB, free: 13.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.01147, allocations: 158.7 kB / 261.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.01159, allocations: 82.09 kB / 261.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.01169, allocations: 342.8 kB / 261.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.596e-05/0.01179, allocations: 59.8 kB / 261.6 MB, free: 12.88 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.0119, allocations: 156.2 kB / 261.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.01208, allocations: 201.7 kB / 262 MB, free: 12.48 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.01209, allocations: 32 / 262 MB, free: 12.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003145/0.0124, allocations: 298.1 kB / 262.3 MB, free: 12.18 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.01241, allocations: 4 kB / 262.3 MB, free: 12.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.01242, allocations: 4 kB / 262.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003258/0.01274, allocations: 208.6 kB / 262.5 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.01286, allocations: 51.91 kB / 262.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.01463, allocations: 2.01 MB / 264.5 MB, free: 9.816 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.01473, allocations: 19.98 kB / 264.5 MB, free: 9.797 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.01476, allocations: 15.98 kB / 264.6 MB, free: 9.781 MB / 250.7 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 9.224e-05/0.01485, allocations: 139.5 kB / 264.7 MB, free: 9.637 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.448e-05/0.01489, allocations: 39.91 kB / 264.7 MB, free: 9.598 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.01493, allocations: 39 kB / 264.8 MB, free: 9.562 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.01493, allocations: 4 kB / 264.8 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.01493, allocations: 3.938 kB / 264.8 MB, free: 9.555 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.01494, allocations: 3.984 kB / 264.8 MB, free: 9.551 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006373/0.01557, allocations: 0.5632 MB / 265.3 MB, free: 8.957 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.01558, allocations: 8 kB / 265.4 MB, free: 8.949 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.01568, allocations: 39.91 kB / 265.4 MB, free: 8.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002837/0.01597, allocations: 188.8 kB / 265.6 MB, free: 8.723 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.01599, allocations: 19.92 kB / 265.6 MB, free: 8.703 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/0.01767, allocations: 2.004 MB / 267.6 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01767, allocations: 0 / 267.6 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000559/0.01823, allocations: 463.1 kB / 268.1 MB, free: 6.141 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.01831, allocations: 35.83 kB / 268.1 MB, free: 6.105 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.01835, allocations: 8 kB / 268.1 MB, free: 6.098 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.01849, allocations: 15.98 kB / 268.1 MB, free: 6.082 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.0186, allocations: 59.88 kB / 268.2 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.01863, allocations: 15.98 kB / 268.2 MB, free: 6.008 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.54e-05/0.0187, allocations: 80.53 kB / 268.3 MB, free: 5.926 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.0187, allocations: 0 / 268.3 MB, free: 5.926 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004848/0.01919, allocations: 139.9 kB / 268.4 MB, free: 5.789 MB / 250.7 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.0001683/0.01936, allocations: 120.3 kB / 268.5 MB, free: 5.664 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005712/0.01993, allocations: 448.9 kB / 269 MB, free: 5.215 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.01993, allocations: 0 / 269 MB, free: 5.215 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.02029, allocations: 354.4 kB / 269.3 MB, free: 4.852 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.02055, allocations: 59.5 kB / 269.4 MB, free: 4.797 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009266/0.02148, allocations: 0.5597 MB / 269.9 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.02179, allocations: 109.1 kB / 270 MB, free: 4.082 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.0219, allocations: 38.95 kB / 270.1 MB, free: 4.047 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.02203, allocations: 91.34 kB / 270.2 MB, free: 3.957 MB / 250.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02203, allocations: 0 / 270.2 MB, free: 3.957 MB / 250.7 MB Notification: Performance of Templates: time 0.01038/0.03241, allocations: 7.105 MB / 277.3 MB, free: 12.88 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.711777084041387]