Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001283/0.001283, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.0008818/0.0008818, allocations: 156.5 kB / 25.44 MB, free: 8.855 MB / 18.57 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 0.8517/0.8517, allocations: 158.6 MB / 187.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 299.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.579e-05/2.724e-05, allocations: 2.281 kB / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002599/0.002626, allocations: 2.557 MB / 302.2 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.00418, allocations: 1.089 MB / 303.3 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.004333, allocations: 7.938 kB / 303.3 MB, free: 3.246 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000223/0.004556, allocations: 75.34 kB / 303.4 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005164/0.005072, allocations: 194.6 kB / 303.6 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.005423, allocations: 255.5 kB / 303.9 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008211/0.006244, allocations: 0.6545 MB / 304.5 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.006403, allocations: 83.97 kB / 304.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.006821, allocations: 403.2 kB / 305 MB, free: 1.594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.007124, allocations: 307.3 kB / 305.3 MB, free: 1.293 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.096e-05/0.007185, allocations: 52 kB / 305.3 MB, free: 1.242 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.007369, allocations: 127.9 kB / 305.5 MB, free: 1.117 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.007495, allocations: 151.5 kB / 305.6 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.007622, allocations: 179.6 kB / 305.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006193/0.008241, allocations: 0.705 MB / 306.5 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.008244, allocations: 0 / 306.5 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.008245, allocations: 0 / 306.5 MB, free: 88 kB / 282.7 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.008254, allocations: 0 / 306.5 MB, free: 88 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001072/0.009326, allocations: 0.7311 MB / 307.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.009361, allocations: 12.03 kB / 307.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.009576, allocations: 72.53 kB / 307.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.01001, allocations: 304.5 kB / 307.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.01012, allocations: 148.4 kB / 307.7 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.01018, allocations: 48.33 kB / 307.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.01089, allocations: 0.586 MB / 308.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.01091, allocations: 8.172 kB / 308.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.01094, allocations: 16.12 kB / 308.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.01095, allocations: 16 kB / 308.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007877/0.01174, allocations: 0.6284 MB / 309 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.01326, allocations: 1.052 MB / 310.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007184/0.01398, allocations: 0.5016 MB / 310.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003641/0.01434, allocations: 294.2 kB / 310.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.01438, allocations: 8.688 kB / 310.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.01441, allocations: 43 kB / 310.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 1.954e-06/0.01441, allocations: 0 / 310.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.004105/0.01851, allocations: 2.556 MB / 313.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.01856, allocations: 85.77 kB / 313.6 MB, free: 8.781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.01881, allocations: 313.8 kB / 313.9 MB, free: 8.469 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.01885, allocations: 41.7 kB / 313.9 MB, free: 8.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.474e-05/0.01895, allocations: 169.6 kB / 314.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.01907, allocations: 226.1 kB / 314.3 MB, free: 8.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.01921, allocations: 126.3 kB / 314.4 MB, free: 7.898 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.01933, allocations: 350.7 kB / 314.8 MB, free: 7.547 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.01969, allocations: 289.2 kB / 315.1 MB, free: 7.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003823/0.02007, allocations: 384.1 kB / 315.4 MB, free: 6.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000631/0.0207, allocations: 0.523 MB / 316 MB, free: 6.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.0207, allocations: 0 / 316 MB, free: 6.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001007/0.02171, allocations: 0.8618 MB / 316.8 MB, free: 5.473 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.02173, allocations: 8 kB / 316.8 MB, free: 5.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.02173, allocations: 4.031 kB / 316.8 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006677/0.0224, allocations: 473.6 kB / 317.3 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.0226, allocations: 83.89 kB / 317.4 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/0.02364, allocations: 1.083 MB / 318.5 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.02384, allocations: 56 kB / 318.5 MB, free: 3.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-05/0.02388, allocations: 23.98 kB / 318.5 MB, free: 3.727 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.02405, allocations: 189.4 kB / 318.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.552e-05/0.0241, allocations: 43.7 kB / 318.8 MB, free: 3.488 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.066e-05/0.02418, allocations: 63.73 kB / 318.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.02419, allocations: 4 kB / 318.8 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.02419, allocations: 3.938 kB / 318.8 MB, free: 3.418 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.0242, allocations: 4 kB / 318.8 MB, free: 3.414 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.02606, allocations: 1.575 MB / 320.4 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.02606, allocations: 0 / 320.4 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.02625, allocations: 79.94 kB / 320.5 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00055/0.0268, allocations: 440.5 kB / 320.9 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.02683, allocations: 23.98 kB / 320.9 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007443/0.02758, allocations: 1.056 MB / 322 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.02758, allocations: 3.938 kB / 322 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.02904, allocations: 1.286 MB / 323.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.02919, allocations: 95.8 kB / 323.4 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.153e-05/0.02924, allocations: 23.94 kB / 323.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.02944, allocations: 51.94 kB / 323.5 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.02957, allocations: 88.47 kB / 323.5 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.0296, allocations: 27.98 kB / 323.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001531/0.02975, allocations: 221.2 kB / 323.8 MB, free: 14.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02975, allocations: 0 / 323.8 MB, free: 14.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003273/0.03008, allocations: 147.9 kB / 323.9 MB, free: 14.21 MB / 314.7 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002288/0.03031, allocations: 155 kB / 324.1 MB, free: 14.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009274/0.03124, allocations: 0.6702 MB / 324.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.03124, allocations: 0 / 324.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004559/0.0317, allocations: 360.7 kB / 325.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.03202, allocations: 64.05 kB / 325.2 MB, free: 12.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.0339, allocations: 1.089 MB / 326.3 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.03403, allocations: 218 kB / 326.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.03413, allocations: 48.47 kB / 326.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of SimCode: time 6.42e-07/0.03413, allocations: 0 / 326.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of Templates: time 0.006616/0.04074, allocations: 7.341 MB / 333.9 MB, free: 4.219 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 5.583412740379572]