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.002125/0.002125, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.00271/0.00271, allocations: 210.9 kB / 24.47 MB, free: 3.547 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.501/1.501, allocations: 207.7 MB / 235.3 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.001745/0.001745, allocations: 59.86 kB / 347.7 MB, free: 9.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3394, allocations: 49.16 MB / 396.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003977/0.3434, allocations: 2.285 MB / 399.1 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.3454, allocations: 0.9786 MB / 400.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.3456, allocations: 4.531 kB / 400.1 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002847/0.3459, allocations: 49.92 kB / 400.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007399/0.3467, allocations: 167.6 kB / 400.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.3471, allocations: 173.4 kB / 400.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.3478, allocations: 477.4 kB / 401 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.348, allocations: 64.36 kB / 401 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004512/0.3485, allocations: 219.2 kB / 401.2 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004729/0.3489, allocations: 226.7 kB / 401.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.349, allocations: 38 kB / 401.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003515/0.3494, allocations: 122.2 kB / 401.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002138/0.3496, allocations: 116 kB / 401.7 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002426/0.3499, allocations: 154.9 kB / 401.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009848/0.3508, allocations: 0.4907 MB / 402.4 MB, free: 6.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3508, allocations: 5.188 kB / 402.4 MB, free: 6.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3508, allocations: 0 / 402.4 MB, free: 6.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.3509, allocations: 0 / 402.4 MB, free: 6.219 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.001575/0.3524, allocations: 0.6064 MB / 403 MB, free: 5.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.381e-05/0.3525, allocations: 13.42 kB / 403 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004563/0.353, allocations: 55.12 kB / 403 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006951/0.3536, allocations: 262.6 kB / 403.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.3538, allocations: 143.4 kB / 403.4 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-05/0.3539, allocations: 31.8 kB / 403.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.355, allocations: 447.6 kB / 403.9 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.355, allocations: 5.969 kB / 403.9 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/0.3551, allocations: 13.97 kB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.3551, allocations: 7.781 kB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.3562, allocations: 465.9 kB / 404.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.358, allocations: 0.7777 MB / 405.2 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00085/0.3588, allocations: 388.2 kB / 405.5 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004508/0.3593, allocations: 208.1 kB / 405.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.3593, allocations: 9.656 kB / 405.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.3594, allocations: 40.02 kB / 405.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.3594, allocations: 0 / 405.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005512/0.3649, allocations: 1.931 MB / 407.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.3649, allocations: 83.89 kB / 407.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.3652, allocations: 238.7 kB / 408 MB, free: 3.281 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.3653, allocations: 37.95 kB / 408.1 MB, free: 3.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.265e-05/0.3654, allocations: 139.4 kB / 408.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3655, allocations: 196.5 kB / 408.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.3657, allocations: 90.47 kB / 408.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.3658, allocations: 333.9 kB / 408.8 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/0.3663, allocations: 200.2 kB / 409 MB, free: 2.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.3668, allocations: 271.4 kB / 409.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008867/0.3677, allocations: 397.3 kB / 409.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3677, allocations: 0 / 409.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001271/0.369, allocations: 0.6028 MB / 410.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.369, allocations: 5.688 kB / 410.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.369, allocations: 0 / 410.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007217/0.3697, allocations: 261.8 kB / 410.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003265/0.3701, allocations: 66.02 kB / 410.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003915/0.374, allocations: 2.757 MB / 413.4 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.3743, allocations: 25 kB / 413.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.633e-05/0.3744, allocations: 17 kB / 413.4 MB, free: 15.56 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.0003212/0.3747, allocations: 165.7 kB / 413.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.3748, allocations: 34.12 kB / 413.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.3749, allocations: 47.7 kB / 413.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.375, allocations: 5.688 kB / 413.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.375, allocations: 5.25 kB / 413.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.375, allocations: 7.922 kB / 413.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002475/0.3775, allocations: 1.106 MB / 414.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3775, allocations: 1.719 kB / 414.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000372/0.3778, allocations: 66.11 kB / 414.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007326/0.3786, allocations: 236.4 kB / 415.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.432e-05/0.3786, allocations: 19.52 kB / 415.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004329/0.3829, allocations: 2.68 MB / 417.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3829, allocations: 1.375 kB / 417.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.3852, allocations: 0.9434 MB / 418.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.3854, allocations: 68.38 kB / 418.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.747e-05/0.3855, allocations: 14.84 kB / 418.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.3858, allocations: 30.09 kB / 418.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.386, allocations: 78.14 kB / 418.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.815e-05/0.3861, allocations: 17.86 kB / 418.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002894/0.3864, allocations: 183.9 kB / 419.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3864, allocations: 0 / 419.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000867/0.3873, allocations: 153.2 kB / 419.2 MB, free: 11.5 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.0003438/0.3876, allocations: 146 kB / 419.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3893, allocations: 0.6652 MB / 420 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3893, allocations: 1.125 kB / 420 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009775/0.3903, allocations: 466 kB / 420.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.3908, allocations: 46.2 kB / 420.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.3926, allocations: 0.802 MB / 421.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.3929, allocations: 190.7 kB / 421.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.3931, allocations: 62.95 kB / 421.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.3932, allocations: 35.41 kB / 421.6 MB, free: 9.766 MB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3932, allocations: 0 / 421.6 MB, free: 9.766 MB / 334.1 MB Notification: Performance of Templates: time 0.01511/0.4083, allocations: 7.356 MB / 429 MB, free: 2.395 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/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: 5.1159045565873384]