Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.474/1.474, allocations: 230.4 MB / 250 MB, free: 9.043 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.83 kB / 367.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2734, allocations: 53.31 MB / 420.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003857/0.2773, allocations: 2.461 MB / 423.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.2791, allocations: 1.053 MB / 424.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.2792, allocations: 7.938 kB / 424.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000276/0.2795, allocations: 67.48 kB / 424.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004266/0.2799, allocations: 152 kB / 424.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.2803, allocations: 159.7 kB / 424.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005514/0.2809, allocations: 474.7 kB / 425 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.281, allocations: 48.7 kB / 425.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000272/0.2813, allocations: 199.5 kB / 425.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.2816, allocations: 255.2 kB / 425.5 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.948e-05/0.2817, allocations: 36 kB / 425.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002276/0.2819, allocations: 131.9 kB / 425.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.282, allocations: 103.7 kB / 425.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.2822, allocations: 179.2 kB / 425.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006173/0.2828, allocations: 0.4941 MB / 426.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.2828, allocations: 0 / 426.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2828, allocations: 0 / 426.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2828, allocations: 0 / 426.4 MB, free: 2.566 MB / 334.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.001328/0.2841, allocations: 0.6777 MB / 427.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2842, allocations: 8.031 kB / 427.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.2845, allocations: 48.73 kB / 427.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005372/0.285, allocations: 309.5 kB / 427.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.2852, allocations: 88.52 kB / 427.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.2852, allocations: 24.38 kB / 427.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007652/0.286, allocations: 389.4 kB / 428 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.286, allocations: 3.953 kB / 428 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.2861, allocations: 12 kB / 428 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.2861, allocations: 8 kB / 428 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008932/0.287, allocations: 417.9 kB / 428.4 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.2893, allocations: 1.253 MB / 429.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007496/0.29, allocations: 330.4 kB / 430 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004026/0.2904, allocations: 164.8 kB / 430.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.2905, allocations: 8 kB / 430.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.2905, allocations: 39.27 kB / 430.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.944e-06/0.2905, allocations: 0 / 430.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005051/0.2956, allocations: 1.898 MB / 432.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.46e-05/0.2956, allocations: 84.86 kB / 432.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003408/0.296, allocations: 246.3 kB / 432.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.296, allocations: 37.7 kB / 432.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2961, allocations: 132.9 kB / 432.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.2963, allocations: 166.8 kB / 432.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.2964, allocations: 90.06 kB / 432.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.2966, allocations: 338.8 kB / 433.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004066/0.297, allocations: 168.8 kB / 433.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.2975, allocations: 221.9 kB / 433.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007181/0.2982, allocations: 339.2 kB / 433.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2982, allocations: 3.938 kB / 433.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001188/0.2994, allocations: 0.5396 MB / 434.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2994, allocations: 4 kB / 434.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.2994, allocations: 4 kB / 434.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008339/0.3002, allocations: 304.7 kB / 434.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.3005, allocations: 51.95 kB / 434.8 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004295/0.3048, allocations: 2.9 MB / 437.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.305, allocations: 23.98 kB / 437.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.871e-05/0.3051, allocations: 19.98 kB / 437.7 MB, free: 6.73 MB / 350.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.0001966/0.3053, allocations: 152.3 kB / 437.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.461e-05/0.3054, allocations: 31.81 kB / 437.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.3055, allocations: 47.05 kB / 437.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3055, allocations: 8 kB / 437.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3055, allocations: 0 / 437.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.3055, allocations: 3.984 kB / 437.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.3075, allocations: 1.101 MB / 439 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3076, allocations: 0 / 439 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.3078, allocations: 43.95 kB / 439.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007789/0.3086, allocations: 288.8 kB / 439.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.3086, allocations: 19.92 kB / 439.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003952/0.3126, allocations: 2.85 MB / 442.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3126, allocations: 0 / 442.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.3142, allocations: 0.8122 MB / 443 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.3144, allocations: 144.9 kB / 443.2 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.091e-05/0.3144, allocations: 11.94 kB / 443.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.3147, allocations: 27.97 kB / 443.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.3149, allocations: 59.91 kB / 443.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.709e-05/0.3149, allocations: 19.98 kB / 443.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.3152, allocations: 184.8 kB / 443.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3152, allocations: 0 / 443.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006212/0.3158, allocations: 136 kB / 443.6 MB, free: 0.5703 MB / 350.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.001336/0.3171, allocations: 377.8 kB / 444 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.3185, allocations: 0.5977 MB / 444.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3185, allocations: 0 / 444.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007643/0.3193, allocations: 413.9 kB / 445 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.3197, allocations: 43.75 kB / 445 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.3211, allocations: 0.7099 MB / 445.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.3216, allocations: 0.7839 MB / 446.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002162/0.3218, allocations: 70.92 kB / 446.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3219, allocations: 35.41 kB / 446.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3219, allocations: 0 / 446.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of Templates: time 0.0138/0.3357, allocations: 7.736 MB / 454.4 MB, free: 5.883 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches