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.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.002188/0.002188, allocations: 101.6 kB / 21.93 MB, free: 5.203 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.002551/0.002551, allocations: 202.2 kB / 25.22 MB, free: 3.141 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.744/1.744, allocations: 207.7 MB / 236.1 MB, free: 9.773 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.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.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.002006/0.002006, allocations: 59.92 kB / 348.4 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3104, allocations: 49.16 MB / 397.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003716/0.3141, allocations: 2.225 MB / 399.8 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.316, allocations: 0.9252 MB / 400.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.3161, allocations: 4.312 kB / 400.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002233/0.3164, allocations: 47.09 kB / 400.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005118/0.3169, allocations: 140.9 kB / 400.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.3173, allocations: 172.8 kB / 401.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004557/0.3177, allocations: 415.2 kB / 401.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.3179, allocations: 60.11 kB / 401.6 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.3181, allocations: 186.4 kB / 401.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003388/0.3185, allocations: 204 kB / 401.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.3185, allocations: 33.38 kB / 402 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.3188, allocations: 123.4 kB / 402.1 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.3189, allocations: 97.11 kB / 402.2 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.3191, allocations: 140.3 kB / 402.3 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005892/0.3197, allocations: 450.6 kB / 402.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3197, allocations: 2.547 kB / 402.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3197, allocations: 0 / 402.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.3197, allocations: 4 kB / 402.8 MB, free: 6.402 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.001086/0.3208, allocations: 0.5596 MB / 403.3 MB, free: 5.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3208, allocations: 12.73 kB / 403.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003314/0.3212, allocations: 57.19 kB / 403.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005174/0.3217, allocations: 253.8 kB / 403.6 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.3218, allocations: 141.3 kB / 403.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.3219, allocations: 31.28 kB / 403.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007233/0.3226, allocations: 402.2 kB / 404.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.3226, allocations: 6.281 kB / 404.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.3227, allocations: 10.19 kB / 404.2 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.3227, allocations: 6.844 kB / 404.2 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000915/0.3236, allocations: 411.5 kB / 404.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.3255, allocations: 1.063 MB / 405.7 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006569/0.3262, allocations: 334.7 kB / 406 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003538/0.3265, allocations: 172.1 kB / 406.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.3266, allocations: 6.219 kB / 406.2 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.3266, allocations: 38.02 kB / 406.2 MB, free: 4.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.325e-06/0.3266, allocations: 0 / 406.2 MB, free: 4.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004612/0.3312, allocations: 1.678 MB / 407.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.3312, allocations: 85.89 kB / 408 MB, free: 3.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.3316, allocations: 253.1 kB / 408.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.3316, allocations: 37.55 kB / 408.3 MB, free: 3.363 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.423e-05/0.3317, allocations: 136.9 kB / 408.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.3318, allocations: 155.9 kB / 408.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.3319, allocations: 80.73 kB / 408.6 MB, free: 3.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.768e-05/0.332, allocations: 336.6 kB / 409 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.3324, allocations: 166.5 kB / 409.1 MB, free: 2.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000408/0.3328, allocations: 264.3 kB / 409.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006776/0.3335, allocations: 342.8 kB / 409.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3335, allocations: 0 / 409.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001116/0.3346, allocations: 0.5508 MB / 410.3 MB, free: 2.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3346, allocations: 5.531 kB / 410.3 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.3346, allocations: 1.438 kB / 410.3 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007735/0.3354, allocations: 250.7 kB / 410.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.3356, allocations: 47.14 kB / 410.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003683/0.3393, allocations: 2.727 MB / 413.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.3396, allocations: 26.69 kB / 413.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.808e-05/0.3397, allocations: 17.47 kB / 413.3 MB, free: 15.91 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.0002477/0.3399, allocations: 154 kB / 413.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.34, allocations: 24.39 kB / 413.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.3401, allocations: 44.91 kB / 413.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.3401, allocations: 12.36 kB / 413.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3401, allocations: 0 / 413.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3401, allocations: 0 / 413.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.3422, allocations: 0.9446 MB / 414.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3422, allocations: 1.531 kB / 414.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.3424, allocations: 47.2 kB / 414.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007448/0.3432, allocations: 246.9 kB / 414.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.267e-05/0.3432, allocations: 16 kB / 414.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00422/0.3474, allocations: 2.658 MB / 417.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3474, allocations: 1.156 kB / 417.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.3491, allocations: 0.8232 MB / 418.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3493, allocations: 62.14 kB / 418.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.3494, allocations: 12.41 kB / 418.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.3496, allocations: 22.02 kB / 418.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.3498, allocations: 62.69 kB / 418.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.3498, allocations: 16.89 kB / 418.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002389/0.3501, allocations: 182.5 kB / 418.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3501, allocations: 1.375 kB / 418.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007287/0.3508, allocations: 140.5 kB / 418.8 MB, free: 12.07 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.0003419/0.3511, allocations: 137.8 kB / 418.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.3526, allocations: 0.605 MB / 419.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3526, allocations: 1.281 kB / 419.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008122/0.3535, allocations: 413.4 kB / 419.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.3539, allocations: 32.45 kB / 420 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.3555, allocations: 0.733 MB / 420.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.3557, allocations: 173.3 kB / 420.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.3559, allocations: 32.48 kB / 420.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3559, allocations: 0 / 420.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of Templates: time 0.01068/0.3665, allocations: 5.377 MB / 426.3 MB, free: 5.824 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 [Calling sys.exit(0), Time elapsed: 9.069301520939916]