Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001583/0.001583, allocations: 113 kB / 21.18 MB, free: 0.5898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 209.7 kB / 24.47 MB, free: 3.996 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.5 MB / 258.1 MB, free: 8.148 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 75.81 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2643, allocations: 53.31 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004036/0.2683, allocations: 2.478 MB / 434.5 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.2702, allocations: 1.077 MB / 435.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2704, allocations: 0 / 435.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000289/0.2706, allocations: 63.48 kB / 435.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004269/0.2711, allocations: 151.8 kB / 435.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.2715, allocations: 163.7 kB / 436 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005221/0.272, allocations: 474.7 kB / 436.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.2721, allocations: 48.72 kB / 436.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002278/0.2724, allocations: 191.5 kB / 436.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.2727, allocations: 259.2 kB / 436.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.446e-05/0.2728, allocations: 40 kB / 437 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.273, allocations: 131.9 kB / 437.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.2731, allocations: 103.7 kB / 437.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.2733, allocations: 175.2 kB / 437.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006186/0.2739, allocations: 0.4962 MB / 437.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2739, allocations: 0 / 437.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2739, allocations: 0 / 437.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2739, allocations: 0 / 437.9 MB, free: 1.566 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.001249/0.2752, allocations: 0.666 MB / 438.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2752, allocations: 8.031 kB / 438.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003159/0.2755, allocations: 56.67 kB / 438.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005403/0.2761, allocations: 309.5 kB / 438.9 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.2762, allocations: 96.45 kB / 439 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.2763, allocations: 28.38 kB / 439 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007394/0.277, allocations: 381.4 kB / 439.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.277, allocations: 4 kB / 439.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.2771, allocations: 8 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2771, allocations: 8 kB / 439.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008782/0.278, allocations: 421.9 kB / 439.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.2801, allocations: 1.269 MB / 441.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007/0.2808, allocations: 314.5 kB / 441.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/0.2812, allocations: 164.8 kB / 441.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.2813, allocations: 15.98 kB / 441.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.2813, allocations: 39.22 kB / 441.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.2813, allocations: 0 / 441.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004942/0.2862, allocations: 1.894 MB / 443.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/0.2863, allocations: 88.86 kB / 443.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.2866, allocations: 250.7 kB / 443.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.2867, allocations: 33.7 kB / 443.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2868, allocations: 136.9 kB / 444 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.2869, allocations: 158.8 kB / 444.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.2871, allocations: 94.06 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2872, allocations: 330.8 kB / 444.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.2876, allocations: 168.8 kB / 444.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.288, allocations: 221.9 kB / 444.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000724/0.2887, allocations: 343.2 kB / 445.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.2887, allocations: 4 kB / 445.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001173/0.2899, allocations: 0.5435 MB / 445.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.2899, allocations: 4 kB / 445.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2899, allocations: 0 / 445.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00081/0.2908, allocations: 292.7 kB / 446.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.291, allocations: 55.91 kB / 446.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.2951, allocations: 2.899 MB / 449.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.2954, allocations: 27.94 kB / 449.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.2954, allocations: 23.97 kB / 449.1 MB, free: 5.73 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.000235/0.2957, allocations: 157.7 kB / 449.3 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.851e-05/0.2958, allocations: 31.75 kB / 449.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.2959, allocations: 42.98 kB / 449.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.2959, allocations: 8 kB / 449.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2959, allocations: 4.062 kB / 449.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2959, allocations: 3.984 kB / 449.4 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001987/0.2979, allocations: 1.094 MB / 450.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2979, allocations: 0 / 450.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.2981, allocations: 51.95 kB / 450.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007294/0.2988, allocations: 276.8 kB / 450.8 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.2989, allocations: 15.98 kB / 450.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.3027, allocations: 2.855 MB / 453.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.3028, allocations: 4.031 kB / 453.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.3043, allocations: 0.8043 MB / 454.5 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.3045, allocations: 149 kB / 454.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.105e-05/0.3046, allocations: 16.02 kB / 454.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.3048, allocations: 23.91 kB / 454.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.305, allocations: 63.91 kB / 454.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.305, allocations: 19.92 kB / 454.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.3053, allocations: 184.2 kB / 454.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3053, allocations: 0 / 454.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006042/0.3059, allocations: 139.9 kB / 455 MB, free: 15.56 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.001293/0.3072, allocations: 383.7 kB / 455.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.3085, allocations: 0.5938 MB / 456 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3085, allocations: 4 kB / 456 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007251/0.3092, allocations: 409.9 kB / 456.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.3096, allocations: 49.75 kB / 456.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.311, allocations: 0.7352 MB / 457.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004157/0.3114, allocations: 0.7839 MB / 458 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.3116, allocations: 43.34 kB / 458 MB, free: 12.62 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3116, allocations: 4 kB / 458 MB, free: 12.62 MB / 366.1 MB Notification: Performance of Templates: time 0.009525/0.3211, allocations: 5.942 MB / 464 MB, free: 6.68 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.590229773893952]