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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=2000,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=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 112.6 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 200 kB / 18 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 44.06 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2888, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003204/0.292, allocations: 2.345 MB / 403.1 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.2934, allocations: 0.9131 MB / 404 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2935, allocations: 8 kB / 404 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.2937, allocations: 43.58 kB / 404 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003993/0.2941, allocations: 139.2 kB / 404.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.2944, allocations: 171.7 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003477/0.2948, allocations: 414.8 kB / 404.7 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.2949, allocations: 68.66 kB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2951, allocations: 183.5 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.2954, allocations: 223.3 kB / 405.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.901e-05/0.2954, allocations: 32 kB / 405.2 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.2956, allocations: 119.9 kB / 405.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.2958, allocations: 99.7 kB / 405.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.2959, allocations: 163.2 kB / 405.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.2963, allocations: 455.7 kB / 406 MB, free: 3.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2964, allocations: 3.938 kB / 406 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2964, allocations: 0 / 406 MB, free: 3.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.2964, allocations: 0 / 406 MB, free: 3.531 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.001034/0.2974, allocations: 0.6316 MB / 406.7 MB, free: 2.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.2974, allocations: 8.031 kB / 406.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.2977, allocations: 52.53 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.2981, allocations: 312.5 kB / 407 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.2983, allocations: 88.52 kB / 407.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.394e-05/0.2983, allocations: 24.38 kB / 407.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006055/0.2989, allocations: 377.4 kB / 407.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.299, allocations: 0 / 407.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.299, allocations: 12 kB / 407.5 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.299, allocations: 12 kB / 407.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000766/0.2998, allocations: 417.9 kB / 408 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.3016, allocations: 1.245 MB / 409.2 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.3023, allocations: 359.8 kB / 409.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003724/0.3026, allocations: 184.8 kB / 409.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.3027, allocations: 11.94 kB / 409.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.3027, allocations: 38.56 kB / 409.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.3027, allocations: 0 / 409.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004437/0.3072, allocations: 1.914 MB / 411.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.3072, allocations: 84.86 kB / 411.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000246/0.3075, allocations: 246.1 kB / 412 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.3075, allocations: 33.7 kB / 412 MB, free: 13.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.691e-05/0.3076, allocations: 136.7 kB / 412.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.686e-05/0.3077, allocations: 150 kB / 412.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.3079, allocations: 82.12 kB / 412.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.96e-05/0.308, allocations: 338.8 kB / 412.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.3083, allocations: 168.8 kB / 412.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003578/0.3087, allocations: 225.9 kB / 413.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000616/0.3093, allocations: 343.2 kB / 413.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3093, allocations: 4 kB / 413.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009832/0.3103, allocations: 0.5551 MB / 414 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3103, allocations: 4 kB / 414 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3103, allocations: 4 kB / 414 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006675/0.311, allocations: 252.6 kB / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3113, allocations: 51.95 kB / 414.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003618/0.3149, allocations: 2.889 MB / 417.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.3152, allocations: 27.97 kB / 417.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.3152, allocations: 19.94 kB / 417.3 MB, free: 7.75 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.0002189/0.3154, allocations: 157.7 kB / 417.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.839e-05/0.3155, allocations: 27.62 kB / 417.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.779e-05/0.3156, allocations: 46.94 kB / 417.5 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3156, allocations: 8.062 kB / 417.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3156, allocations: 4 kB / 417.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3156, allocations: 3.984 kB / 417.5 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.3174, allocations: 1.086 MB / 418.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3175, allocations: 0 / 418.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002092/0.3177, allocations: 43.97 kB / 418.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006272/0.3183, allocations: 237.1 kB / 418.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.352e-05/0.3184, allocations: 11.98 kB / 418.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.3217, allocations: 2.845 MB / 421.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3218, allocations: 32 / 421.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.3231, allocations: 0.8235 MB / 422.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3233, allocations: 136.9 kB / 422.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.3234, allocations: 19.92 kB / 422.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.3236, allocations: 19.98 kB / 422.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.3238, allocations: 59.91 kB / 422.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.3238, allocations: 15.98 kB / 422.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.3241, allocations: 180.2 kB / 423 MB, free: 1.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3241, allocations: 4 kB / 423 MB, free: 1.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005433/0.3246, allocations: 136 kB / 423.1 MB, free: 1.66 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.0002247/0.3248, allocations: 143.2 kB / 423.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.3261, allocations: 0.6289 MB / 423.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3261, allocations: 4.25 kB / 423.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.3269, allocations: 433.5 kB / 424.3 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.3273, allocations: 35.92 kB / 424.3 MB, free: 396 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.3286, allocations: 0.6983 MB / 425 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.3289, allocations: 0.78 MB / 425.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001579/0.3291, allocations: 54.95 kB / 425.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.033e-05/0.3292, allocations: 31.42 kB / 425.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3292, allocations: 4 kB / 425.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01267/0.3419, allocations: 7.194 MB / 433.1 MB, free: 7.594 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches