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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 185.2 kB / 24.47 MB, free: 4.074 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.58/1.58, allocations: 207.6 MB / 235.2 MB, free: 10.01 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.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.002081/0.002081, allocations: 51.91 kB / 347.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3046, allocations: 49.15 MB / 396.8 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003283/0.3079, allocations: 2.359 MB / 399.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.3095, allocations: 0.9826 MB / 400.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.3096, allocations: 6.594 kB / 400.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.3099, allocations: 44 kB / 400.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000496/0.3104, allocations: 136.7 kB / 400.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003438/0.3108, allocations: 175.1 kB / 400.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.3112, allocations: 423.2 kB / 400.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.3113, allocations: 48.89 kB / 401 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.3115, allocations: 186 kB / 401.1 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.3119, allocations: 223.4 kB / 401.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.807e-05/0.3119, allocations: 32.97 kB / 401.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.3122, allocations: 139.2 kB / 401.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.3123, allocations: 97.09 kB / 401.6 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.3125, allocations: 161 kB / 401.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005738/0.313, allocations: 454.8 kB / 402.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.313, allocations: 0 / 402.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.313, allocations: 1.031 kB / 402.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.3131, allocations: 0 / 402.2 MB, free: 6.277 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.001108/0.3142, allocations: 0.5668 MB / 402.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3142, allocations: 16.89 kB / 402.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003077/0.3145, allocations: 50.31 kB / 402.8 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.315, allocations: 249.4 kB / 403.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.3151, allocations: 85.91 kB / 403.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.216e-05/0.3152, allocations: 34.56 kB / 403.2 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.3159, allocations: 373 kB / 403.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.3159, allocations: 1.375 kB / 403.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.316, allocations: 11.16 kB / 403.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.316, allocations: 7.344 kB / 403.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008946/0.3169, allocations: 426.3 kB / 404 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002113/0.319, allocations: 1.177 MB / 405.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007194/0.3197, allocations: 326.8 kB / 405.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003496/0.32, allocations: 177.4 kB / 405.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.3201, allocations: 4.344 kB / 405.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.3201, allocations: 41.44 kB / 405.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.3201, allocations: 0 / 405.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004404/0.3245, allocations: 1.678 MB / 407.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.3246, allocations: 86.7 kB / 407.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.3248, allocations: 248.2 kB / 407.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.3249, allocations: 32.7 kB / 407.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.3249, allocations: 137 kB / 407.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.325, allocations: 163.3 kB / 408.1 MB, free: 3.023 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.3252, allocations: 81.98 kB / 408.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.3252, allocations: 336.5 kB / 408.5 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003553/0.3256, allocations: 169.1 kB / 408.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003806/0.326, allocations: 226.7 kB / 408.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006271/0.3266, allocations: 348.9 kB / 409.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3266, allocations: 0 / 409.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001068/0.3277, allocations: 0.5507 MB / 409.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3277, allocations: 5.844 kB / 409.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3277, allocations: 0.5156 kB / 409.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007396/0.3284, allocations: 249.2 kB / 410 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.3287, allocations: 51.38 kB / 410 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.3321, allocations: 2.798 MB / 412.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.3324, allocations: 27.66 kB / 412.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.3325, allocations: 16.75 kB / 412.9 MB, free: 15.74 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.0002541/0.3327, allocations: 159.3 kB / 413 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.962e-05/0.3328, allocations: 25.61 kB / 413.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.3329, allocations: 38.59 kB / 413.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3329, allocations: 5.344 kB / 413.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3329, allocations: 0 / 413.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.3329, allocations: 3.984 kB / 413.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.3349, allocations: 1.056 MB / 414.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3349, allocations: 0 / 414.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.3351, allocations: 44.19 kB / 414.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007194/0.3359, allocations: 235.9 kB / 414.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.3359, allocations: 15.7 kB / 414.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00399/0.3399, allocations: 2.733 MB / 417.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3399, allocations: 1.188 kB / 417.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.3415, allocations: 0.8215 MB / 418 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.3416, allocations: 62.48 kB / 418.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/0.3416, allocations: 12.44 kB / 418.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002473/0.3419, allocations: 25.98 kB / 418.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.342, allocations: 63.16 kB / 418.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.3421, allocations: 12.98 kB / 418.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002201/0.3423, allocations: 182.5 kB / 418.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3423, allocations: 0 / 418.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006319/0.3429, allocations: 141.5 kB / 418.5 MB, free: 11.71 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.0002806/0.3432, allocations: 130.5 kB / 418.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3445, allocations: 0.5997 MB / 419.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.3445, allocations: 1.219 kB / 419.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007368/0.3453, allocations: 422.6 kB / 419.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.3457, allocations: 40.33 kB / 419.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.3474, allocations: 0.7079 MB / 420.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005789/0.3479, allocations: 0.7725 MB / 421.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002005/0.3481, allocations: 55.55 kB / 421.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.147e-05/0.3482, allocations: 30.39 kB / 421.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3482, allocations: 0 / 421.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of Templates: time 0.01571/0.3639, allocations: 7.613 MB / 428.9 MB, free: 2.645 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/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: 5.003398739732802]