Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001897/0.001897, allocations: 100 kB / 21.18 MB, free: 0.6484 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.00231/0.00231, allocations: 185.9 kB / 24.45 MB, free: 3.961 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.546/1.546, allocations: 225.7 MB / 253.3 MB, free: 12.81 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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 55.92 kB / 371.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2701, allocations: 52.17 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003802/0.2739, allocations: 2.236 MB / 426 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.2757, allocations: 0.8781 MB / 426.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2758, allocations: 3.938 kB / 426.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.276, allocations: 51.58 kB / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004991/0.2765, allocations: 135.2 kB / 427.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003678/0.2769, allocations: 175.6 kB / 427.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004797/0.2774, allocations: 414.8 kB / 427.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.2775, allocations: 55.8 kB / 427.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.2778, allocations: 179.5 kB / 427.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.2781, allocations: 215.2 kB / 428.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.487e-05/0.2782, allocations: 32 kB / 428.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.2784, allocations: 111.9 kB / 428.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.2785, allocations: 99.72 kB / 428.4 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.2787, allocations: 143.4 kB / 428.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006017/0.2793, allocations: 450.1 kB / 428.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2793, allocations: 0 / 428.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2793, allocations: 4 kB / 428.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.2793, allocations: 0 / 428.9 MB, free: 9.297 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.001219/0.2805, allocations: 0.5675 MB / 429.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.2806, allocations: 8.031 kB / 429.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/0.2809, allocations: 52.73 kB / 429.6 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000537/0.2814, allocations: 242 kB / 429.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.2816, allocations: 144 kB / 429.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.28e-05/0.2817, allocations: 28.38 kB / 430 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007406/0.2824, allocations: 404.5 kB / 430.4 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.2825, allocations: 11.94 kB / 430.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.2825, allocations: 12 kB / 430.4 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.2825, allocations: 11.94 kB / 430.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008445/0.2834, allocations: 418.2 kB / 430.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.2854, allocations: 1.061 MB / 431.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.2861, allocations: 336.5 kB / 432.2 MB, free: 5.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003645/0.2865, allocations: 164.8 kB / 432.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.2865, allocations: 4 kB / 432.4 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.2866, allocations: 38.56 kB / 432.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.803e-06/0.2866, allocations: 0 / 432.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004744/0.2913, allocations: 1.693 MB / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.2914, allocations: 88.86 kB / 434.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.2917, allocations: 243.1 kB / 434.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/0.2917, allocations: 33.7 kB / 434.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.2919, allocations: 136.9 kB / 434.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.292, allocations: 158.6 kB / 434.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.2922, allocations: 90.08 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.2923, allocations: 330.8 kB / 435.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.2927, allocations: 172.7 kB / 435.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.2932, allocations: 263.5 kB / 435.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007192/0.2939, allocations: 343.1 kB / 435.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2939, allocations: 0 / 435.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001165/0.295, allocations: 0.5435 MB / 436.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.2951, allocations: 8 kB / 436.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2951, allocations: 3.984 kB / 436.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007668/0.2958, allocations: 244.8 kB / 436.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.2961, allocations: 51.91 kB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004272/0.3004, allocations: 2.723 MB / 439.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3006, allocations: 23.98 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/0.3007, allocations: 15.98 kB / 439.5 MB, free: 14.29 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.0002218/0.3009, allocations: 161.3 kB / 439.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.903e-05/0.301, allocations: 31.8 kB / 439.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.3011, allocations: 43.06 kB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3011, allocations: 7.984 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3011, allocations: 4 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.3011, allocations: 3.984 kB / 439.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.303, allocations: 0.9454 MB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.303, allocations: 0 / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.3032, allocations: 43.91 kB / 440.8 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006766/0.3039, allocations: 240.9 kB / 441 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.3039, allocations: 15.98 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.3079, allocations: 2.664 MB / 443.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3079, allocations: 3.938 kB / 443.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.3096, allocations: 0.8157 MB / 444.5 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.3098, allocations: 71.86 kB / 444.6 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.3098, allocations: 8 kB / 444.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3101, allocations: 23.97 kB / 444.6 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.3103, allocations: 63.88 kB / 444.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/0.3103, allocations: 19.92 kB / 444.7 MB, free: 8.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002626/0.3106, allocations: 176.4 kB / 444.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3106, allocations: 0 / 444.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006943/0.3113, allocations: 135.9 kB / 445 MB, free: 8.66 MB / 350.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.0002708/0.3115, allocations: 143.1 kB / 445.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.3129, allocations: 0.5979 MB / 445.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3129, allocations: 4 kB / 445.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007492/0.3136, allocations: 414 kB / 446.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.314, allocations: 31.23 kB / 446.2 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.3155, allocations: 0.7349 MB / 446.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.3156, allocations: 167.8 kB / 447.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3158, allocations: 43.39 kB / 447.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3158, allocations: 0 / 447.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of Templates: time 0.008911/0.3247, allocations: 5.366 MB / 452.5 MB, free: 1.086 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 8.648550884332508]