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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 106.5 kB / 20.32 MB, free: 1.75 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 184.9 kB / 23.47 MB, free: 5.469 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 207.6 MB / 234 MB, free: 11.04 MB / 190.1 MB [Timeout remaining time 88] 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 51.92 kB / 345.8 MB, free: 10.64 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2863, allocations: 49.12 MB / 394.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003431/0.2898, allocations: 2.35 MB / 397.3 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.2915, allocations: 0.9759 MB / 398.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.2917, allocations: 3.812 kB / 398.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002304/0.2919, allocations: 47.61 kB / 398.3 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005296/0.2924, allocations: 129.3 kB / 398.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.2928, allocations: 179.6 kB / 398.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004525/0.2933, allocations: 420.6 kB / 399 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.2935, allocations: 49.86 kB / 399.1 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.2937, allocations: 183.2 kB / 399.2 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003096/0.294, allocations: 226.5 kB / 399.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.731e-05/0.2941, allocations: 32.22 kB / 399.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.2943, allocations: 130.7 kB / 399.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.2944, allocations: 94.19 kB / 399.7 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.2946, allocations: 165.4 kB / 399.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000637/0.2952, allocations: 448.2 kB / 400.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2952, allocations: 0 / 400.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2952, allocations: 1.188 kB / 400.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.2953, allocations: 0 / 400.3 MB, free: 6.195 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.001138/0.2964, allocations: 0.6421 MB / 401 MB, free: 5.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2964, allocations: 9.125 kB / 401 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/0.2968, allocations: 49.12 kB / 401 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.2973, allocations: 310.9 kB / 401.3 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.2974, allocations: 96 kB / 401.4 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.2974, allocations: 30.28 kB / 401.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007059/0.2981, allocations: 378.1 kB / 401.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.2982, allocations: 1.312 kB / 401.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.2982, allocations: 11.56 kB / 401.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2982, allocations: 7.062 kB / 401.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008687/0.2991, allocations: 422.7 kB / 402.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.301, allocations: 1.237 MB / 403.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006744/0.3017, allocations: 326.6 kB / 403.8 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000355/0.3021, allocations: 173.1 kB / 404 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.3021, allocations: 4.562 kB / 404 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.3021, allocations: 46.38 kB / 404 MB, free: 4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.064e-06/0.3021, allocations: 0 / 404 MB, free: 4 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004708/0.3068, allocations: 1.913 MB / 405.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3069, allocations: 86.36 kB / 406 MB, free: 2.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.3072, allocations: 245 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.3072, allocations: 37.06 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.176e-05/0.3073, allocations: 141.7 kB / 406.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3074, allocations: 159 kB / 406.6 MB, free: 2.422 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.3076, allocations: 81.23 kB / 406.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.874e-05/0.3076, allocations: 340 kB / 407 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003602/0.308, allocations: 165.6 kB / 407.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003918/0.3084, allocations: 226.1 kB / 407.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006528/0.309, allocations: 349.7 kB / 407.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.309, allocations: 0 / 407.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001106/0.3101, allocations: 0.5499 MB / 408.3 MB, free: 1.492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3102, allocations: 5.625 kB / 408.3 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.3102, allocations: 2.703 kB / 408.3 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007785/0.311, allocations: 255.8 kB / 408.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.3112, allocations: 55.89 kB / 408.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003964/0.3152, allocations: 2.889 MB / 411.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.3155, allocations: 24.11 kB / 411.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.594e-05/0.3155, allocations: 19.45 kB / 411.5 MB, free: 15.18 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.0002448/0.3158, allocations: 159.9 kB / 411.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.083e-05/0.3159, allocations: 24.55 kB / 411.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.316, allocations: 43.48 kB / 411.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.316, allocations: 5.25 kB / 411.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.316, allocations: 0 / 411.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.316, allocations: 5.359 kB / 411.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.318, allocations: 1.08 MB / 412.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.318, allocations: 0 / 412.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/0.3182, allocations: 49.52 kB / 412.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007308/0.3189, allocations: 238.2 kB / 413.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.319, allocations: 11.38 kB / 413.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004287/0.3232, allocations: 2.842 MB / 416 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3233, allocations: 4 kB / 416 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.3249, allocations: 0.8066 MB / 416.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.3251, allocations: 138.5 kB / 416.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.539e-05/0.3252, allocations: 11.81 kB / 416.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.3254, allocations: 34.66 kB / 416.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.3256, allocations: 59.41 kB / 417 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.3256, allocations: 13.42 kB / 417 MB, free: 11.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002287/0.3259, allocations: 182.6 kB / 417.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3259, allocations: 0 / 417.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007274/0.3266, allocations: 137.8 kB / 417.3 MB, free: 10.9 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.0002661/0.3269, allocations: 134.5 kB / 417.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.3282, allocations: 0.6091 MB / 418.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3282, allocations: 1.219 kB / 418.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007523/0.329, allocations: 413.4 kB / 418.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.3294, allocations: 43.09 kB / 418.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.3309, allocations: 0.7392 MB / 419.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.3314, allocations: 0.7774 MB / 420 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.3315, allocations: 39.91 kB / 420.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3315, allocations: 0 / 420.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of Templates: time 0.009203/0.3407, allocations: 5.255 MB / 425.3 MB, free: 4.66 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 -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