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.001952/0.001952, allocations: 108.3 kB / 21.93 MB, free: 5.223 MB / 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.002075/0.002075, allocations: 214 kB / 25.23 MB, free: 3.027 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.641/1.641, allocations: 207.7 MB / 236.1 MB, free: 9.805 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.001868/0.001868, allocations: 58.52 kB / 348.4 MB, free: 9.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3048, allocations: 49.16 MB / 397.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003429/0.3082, allocations: 2.288 MB / 399.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3099, allocations: 0.9841 MB / 400.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.3101, allocations: 3.969 kB / 400.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002204/0.3103, allocations: 49.47 kB / 400.9 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005541/0.3108, allocations: 168.2 kB / 401.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.3112, allocations: 173 kB / 401.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005/0.3117, allocations: 476.4 kB / 401.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.3119, allocations: 68.14 kB / 401.8 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/0.3122, allocations: 208.8 kB / 402 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.3126, allocations: 234 kB / 402.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.278e-05/0.3127, allocations: 41.78 kB / 402.3 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002713/0.3129, allocations: 120.9 kB / 402.4 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.3131, allocations: 112.1 kB / 402.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.3132, allocations: 158.1 kB / 402.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005922/0.3138, allocations: 0.4886 MB / 403.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3138, allocations: 1.797 kB / 403.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3138, allocations: 0 / 403.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.3138, allocations: 0 / 403.1 MB, free: 6.215 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.001191/0.315, allocations: 0.6057 MB / 403.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3151, allocations: 12.8 kB / 403.7 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003113/0.3154, allocations: 59.95 kB / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.3159, allocations: 263 kB / 404.1 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.316, allocations: 142.8 kB / 404.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-05/0.3161, allocations: 36.11 kB / 404.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007754/0.3168, allocations: 439.1 kB / 404.7 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3169, allocations: 5.641 kB / 404.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.3169, allocations: 11.22 kB / 404.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.3169, allocations: 7.25 kB / 404.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009801/0.3179, allocations: 475.5 kB / 405.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.3195, allocations: 0.7721 MB / 405.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007655/0.3202, allocations: 391.9 kB / 406.3 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004291/0.3207, allocations: 208.6 kB / 406.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.3207, allocations: 6 kB / 406.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.3207, allocations: 43.11 kB / 406.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.893e-06/0.3207, allocations: 0 / 406.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.004845/0.3256, allocations: 1.928 MB / 408.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.3256, allocations: 83.95 kB / 408.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/0.3259, allocations: 243.7 kB / 408.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.3259, allocations: 36.77 kB / 408.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.143e-05/0.326, allocations: 139.5 kB / 409 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3261, allocations: 196.4 kB / 409.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3263, allocations: 89.3 kB / 409.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.574e-05/0.3263, allocations: 335 kB / 409.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004376/0.3268, allocations: 201.4 kB / 409.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004717/0.3273, allocations: 271.5 kB / 410 MB, free: 2.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007879/0.328, allocations: 390.1 kB / 410.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.328, allocations: 1.156 kB / 410.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00113/0.3292, allocations: 0.6033 MB / 411 MB, free: 1.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3292, allocations: 5.719 kB / 411 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3292, allocations: 0 / 411 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000702/0.3299, allocations: 264.8 kB / 411.3 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.3302, allocations: 63.89 kB / 411.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003521/0.3337, allocations: 2.76 MB / 414.1 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.334, allocations: 25.28 kB / 414.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.3341, allocations: 20.8 kB / 414.2 MB, free: 15.57 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.0002454/0.3343, allocations: 157.6 kB / 414.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.3344, allocations: 34.25 kB / 414.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.3345, allocations: 47.8 kB / 414.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3345, allocations: 5.531 kB / 414.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3345, allocations: 5.375 kB / 414.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.3345, allocations: 7.969 kB / 414.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.3368, allocations: 1.106 MB / 415.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3368, allocations: 0 / 415.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.3372, allocations: 68.11 kB / 415.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006818/0.3378, allocations: 239.9 kB / 415.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.3379, allocations: 16.52 kB / 415.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/0.3419, allocations: 2.675 MB / 418.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3419, allocations: 1.062 kB / 418.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.3439, allocations: 0.9547 MB / 419.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.344, allocations: 67.5 kB / 419.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.3441, allocations: 13.25 kB / 419.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.3444, allocations: 28.59 kB / 419.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.3446, allocations: 70.42 kB / 419.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.3446, allocations: 22.52 kB / 419.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.3449, allocations: 179.7 kB / 419.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3449, allocations: 0 / 419.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006887/0.3456, allocations: 157.5 kB / 420 MB, free: 11.52 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.0002763/0.3458, allocations: 144.9 kB / 420.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.3474, allocations: 0.6743 MB / 420.8 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3474, allocations: 0 / 420.8 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008572/0.3482, allocations: 464.4 kB / 421.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.3487, allocations: 29.56 kB / 421.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.3504, allocations: 0.8341 MB / 422.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.3507, allocations: 190.7 kB / 422.3 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.3508, allocations: 39.41 kB / 422.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3508, allocations: 0 / 422.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of Templates: time 0.01025/0.361, allocations: 6.092 MB / 428.4 MB, free: 3.699 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: 8.995093269273639]