Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001928/0.001928, allocations: 120.2 kB / 21.94 MB, free: 28 kB / 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.002374/0.002374, allocations: 208.8 kB / 25.24 MB, free: 3.562 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.901/1.901, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [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.001837/0.001837, allocations: 55.92 kB / 348.4 MB, free: 9.625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3018, allocations: 49.16 MB / 397.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003414/0.3053, allocations: 2.441 MB / 400 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001717/0.307, allocations: 1.025 MB / 401.1 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001802/0.3072, allocations: 8.219 kB / 401.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002272/0.3074, allocations: 46.2 kB / 401.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005257/0.3079, allocations: 167 kB / 401.3 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.3083, allocations: 178.8 kB / 401.5 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.3088, allocations: 478.9 kB / 401.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.3089, allocations: 68.05 kB / 402 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000294/0.3092, allocations: 215.7 kB / 402.2 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003398/0.3096, allocations: 254.2 kB / 402.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.972e-05/0.3096, allocations: 40.88 kB / 402.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.3099, allocations: 123.5 kB / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.31, allocations: 112.4 kB / 402.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/0.3102, allocations: 184.2 kB / 402.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005939/0.3108, allocations: 0.4951 MB / 403.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3108, allocations: 0 / 403.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3108, allocations: 4 kB / 403.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3108, allocations: 0 / 403.4 MB, free: 6.023 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0012/0.312, allocations: 0.6095 MB / 404 MB, free: 5.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3121, allocations: 12.98 kB / 404 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003124/0.3124, allocations: 56.19 kB / 404.1 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005363/0.3129, allocations: 261.5 kB / 404.3 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.313, allocations: 142.3 kB / 404.5 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.225e-05/0.3131, allocations: 32.31 kB / 404.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007917/0.3139, allocations: 421.9 kB / 404.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.3139, allocations: 6 kB / 404.9 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.601e-05/0.314, allocations: 10.34 kB / 404.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.314, allocations: 7.688 kB / 404.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009846/0.3149, allocations: 477.4 kB / 405.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.3166, allocations: 0.9099 MB / 406.3 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007946/0.3174, allocations: 383.8 kB / 406.7 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004202/0.3178, allocations: 208.9 kB / 406.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.3178, allocations: 4.656 kB / 406.9 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.3179, allocations: 39.09 kB / 406.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.703e-06/0.3179, allocations: 0 / 406.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.004878/0.3227, allocations: 1.939 MB / 408.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.3228, allocations: 84.08 kB / 409 MB, free: 3.188 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.3231, allocations: 263.1 kB / 409.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.3231, allocations: 40.14 kB / 409.3 MB, free: 3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.3232, allocations: 130.9 kB / 409.4 MB, free: 2.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.3233, allocations: 191.9 kB / 409.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.3235, allocations: 89.33 kB / 409.7 MB, free: 2.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.849e-05/0.3236, allocations: 343.3 kB / 410 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004208/0.324, allocations: 196.9 kB / 410.2 MB, free: 2.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004437/0.3244, allocations: 250.7 kB / 410.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007715/0.3252, allocations: 391.9 kB / 410.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3252, allocations: 0 / 410.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001141/0.3263, allocations: 0.5964 MB / 411.4 MB, free: 1.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3264, allocations: 9.312 kB / 411.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3264, allocations: 5.031 kB / 411.4 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006824/0.327, allocations: 264.5 kB / 411.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.3273, allocations: 59.58 kB / 411.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003526/0.3309, allocations: 2.833 MB / 414.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/0.3312, allocations: 33.56 kB / 414.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.3312, allocations: 15.94 kB / 414.6 MB, free: 15.23 MB / 334.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.0002312/0.3314, allocations: 157.6 kB / 414.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.969e-05/0.3315, allocations: 39.66 kB / 414.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3316, allocations: 47.61 kB / 414.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3317, allocations: 5.594 kB / 414.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3317, allocations: 1.062 kB / 414.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3317, allocations: 7.984 kB / 414.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.334, allocations: 1.22 MB / 416.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.334, allocations: 4 kB / 416.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.3343, allocations: 63.48 kB / 416.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006738/0.335, allocations: 250 kB / 416.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.3351, allocations: 15.48 kB / 416.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/0.339, allocations: 2.74 MB / 419.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.339, allocations: 1.969 kB / 419.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.3409, allocations: 0.9488 MB / 420.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.341, allocations: 75.89 kB / 420.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.339e-05/0.3411, allocations: 15.97 kB / 420.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.3414, allocations: 30.31 kB / 420.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.3416, allocations: 69.45 kB / 420.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.3416, allocations: 14.5 kB / 420.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.3419, allocations: 199.1 kB / 420.5 MB, free: 11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3419, allocations: 0 / 420.5 MB, free: 11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006894/0.3426, allocations: 157 kB / 420.7 MB, free: 10.98 MB / 334.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.0002537/0.3428, allocations: 133.4 kB / 420.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.3443, allocations: 0.6657 MB / 421.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3443, allocations: 1.625 kB / 421.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008541/0.3451, allocations: 468.4 kB / 421.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.3456, allocations: 33.52 kB / 421.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.3472, allocations: 0.8358 MB / 422.8 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004788/0.3477, allocations: 0.8044 MB / 423.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3478, allocations: 35.42 kB / 423.6 MB, free: 8.688 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3478, allocations: 0 / 423.6 MB, free: 8.688 MB / 334.1 MB Notification: Performance of Templates: time 0.009699/0.3575, allocations: 6.053 MB / 429.7 MB, free: 2.621 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.249764936044812]