Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00136/0.00136, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001456/0.001456, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001144, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2616, allocations: 50.54 MB / 409.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004114/0.2658, allocations: 2.453 MB / 411.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.2677, allocations: 1.049 MB / 412.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.268, allocations: 4 kB / 412.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003339/0.2683, allocations: 67.5 kB / 412.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005587/0.2689, allocations: 154.1 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.2694, allocations: 159.7 kB / 413.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005755/0.27, allocations: 474.7 kB / 413.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.2702, allocations: 64.7 kB / 413.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002657/0.2705, allocations: 207.5 kB / 413.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003665/0.2708, allocations: 239.2 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.32e-05/0.2709, allocations: 39.98 kB / 414.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002753/0.2712, allocations: 127.9 kB / 414.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.2714, allocations: 115.7 kB / 414.4 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.2716, allocations: 167.2 kB / 414.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006161/0.2722, allocations: 0.4903 MB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2722, allocations: 3.938 kB / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2722, allocations: 0 / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.2722, allocations: 0 / 415 MB, free: 11.76 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.001309/0.2735, allocations: 0.6738 MB / 415.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2736, allocations: 8.031 kB / 415.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003724/0.274, allocations: 52.73 kB / 415.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005553/0.2745, allocations: 309.5 kB / 416 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.2747, allocations: 88.52 kB / 416.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.668e-05/0.2748, allocations: 28.38 kB / 416.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007602/0.2755, allocations: 381.4 kB / 416.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.2756, allocations: 3.953 kB / 416.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.2756, allocations: 16 kB / 416.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2756, allocations: 8 kB / 416.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008837/0.2765, allocations: 417.9 kB / 417 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.2786, allocations: 1.261 MB / 418.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000685/0.2793, allocations: 353.4 kB / 418.6 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003959/0.2797, allocations: 192.7 kB / 418.8 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.2798, allocations: 12.08 kB / 418.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.2798, allocations: 39.28 kB / 418.8 MB, free: 7.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.034e-06/0.2798, allocations: 0 / 418.8 MB, free: 7.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004788/0.2846, allocations: 1.898 MB / 420.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.2847, allocations: 88.86 kB / 420.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.285, allocations: 250.3 kB / 421 MB, free: 5.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.285, allocations: 37.69 kB / 421.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/0.2851, allocations: 132.9 kB / 421.2 MB, free: 5.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.2852, allocations: 162.6 kB / 421.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.2854, allocations: 90.06 kB / 421.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.2855, allocations: 334.8 kB / 421.8 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.2859, allocations: 168.8 kB / 421.9 MB, free: 4.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.2863, allocations: 221.9 kB / 422.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006826/0.287, allocations: 339.2 kB / 422.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.287, allocations: 4 kB / 422.5 MB, free: 3.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001116/0.2882, allocations: 0.5474 MB / 423 MB, free: 3.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2882, allocations: 8 kB / 423.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2882, allocations: 0 / 423.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008143/0.289, allocations: 308.7 kB / 423.4 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.2893, allocations: 51.89 kB / 423.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003862/0.2931, allocations: 2.896 MB / 426.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.2934, allocations: 23.98 kB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/0.2935, allocations: 19.98 kB / 426.3 MB, free: 15.86 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.0002097/0.2937, allocations: 158.1 kB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.225e-05/0.2938, allocations: 27.81 kB / 426.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.482e-05/0.2939, allocations: 43.06 kB / 426.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.2939, allocations: 7.984 kB / 426.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.2939, allocations: 3.984 kB / 426.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2939, allocations: 0 / 426.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.2959, allocations: 1.113 MB / 427.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2959, allocations: 0 / 427.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.2962, allocations: 51.97 kB / 427.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007215/0.2969, allocations: 284.8 kB / 428 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-05/0.2969, allocations: 15.98 kB / 428 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004039/0.301, allocations: 2.851 MB / 430.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.301, allocations: 0 / 430.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.3027, allocations: 0.8161 MB / 431.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.3029, allocations: 148.9 kB / 431.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.3029, allocations: 15.94 kB / 431.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.3032, allocations: 23.98 kB / 431.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.3034, allocations: 67.83 kB / 432 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.3034, allocations: 15.98 kB / 432 MB, free: 9.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002149/0.3036, allocations: 184.8 kB / 432.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3037, allocations: 0 / 432.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006231/0.3043, allocations: 140 kB / 432.3 MB, free: 9.672 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.000959/0.3053, allocations: 360.7 kB / 432.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.3067, allocations: 0.625 MB / 433.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3067, allocations: 4 kB / 433.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007303/0.3075, allocations: 433.9 kB / 433.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.3079, allocations: 43.58 kB / 433.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.3093, allocations: 0.7144 MB / 434.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.3096, allocations: 0.7761 MB / 435.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002292/0.3099, allocations: 78.91 kB / 435.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.31, allocations: 35.41 kB / 435.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.31, allocations: 0 / 435.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of Templates: time 0.013/0.323, allocations: 7.672 MB / 443 MB, free: 14.99 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches