Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 119.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 202.7 kB / 19.41 MB, free: 3.664 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.425/1.425, allocations: 227.7 MB / 247.9 MB, free: 10.18 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.001908/0.001908, allocations: 67.88 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2364, allocations: 50.54 MB / 410.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00419/0.2406, allocations: 2.551 MB / 412.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.2427, allocations: 1.139 MB / 413.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2428, allocations: 4 kB / 413.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.2431, allocations: 67.42 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004787/0.2436, allocations: 167.8 kB / 414.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.244, allocations: 179.6 kB / 414.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000627/0.2446, allocations: 0.5141 MB / 414.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2448, allocations: 72.86 kB / 414.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004025/0.2452, allocations: 239.4 kB / 415.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003876/0.2456, allocations: 283.1 kB / 415.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.27e-05/0.2457, allocations: 40 kB / 415.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003176/0.246, allocations: 135.9 kB / 415.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.2462, allocations: 119.6 kB / 415.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.2464, allocations: 199.1 kB / 415.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008032/0.2472, allocations: 0.5409 MB / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2472, allocations: 0 / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2472, allocations: 0 / 416.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.2473, allocations: 0 / 416.4 MB, free: 11.21 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001457/0.2487, allocations: 0.7204 MB / 417.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2487, allocations: 8.031 kB / 417.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004472/0.2492, allocations: 68.67 kB / 417.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006128/0.2498, allocations: 319.7 kB / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.25, allocations: 88.61 kB / 417.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/0.25, allocations: 36.33 kB / 417.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008788/0.2509, allocations: 425 kB / 418.1 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.2509, allocations: 4 kB / 418.1 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/0.251, allocations: 15.98 kB / 418.1 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.251, allocations: 8 kB / 418.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.2521, allocations: 470.3 kB / 418.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.2539, allocations: 0.9854 MB / 419.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008776/0.2548, allocations: 376.4 kB / 419.9 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.2553, allocations: 214 kB / 420.1 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.2553, allocations: 8.422 kB / 420.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.2554, allocations: 39 kB / 420.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.084e-06/0.2554, allocations: 0 / 420.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005544/0.2609, allocations: 2.141 MB / 422.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.261, allocations: 89.61 kB / 422.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.2614, allocations: 269 kB / 422.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.998e-05/0.2614, allocations: 37.7 kB / 422.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.2616, allocations: 149.2 kB / 422.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.2618, allocations: 186.4 kB / 423 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.2619, allocations: 90.23 kB / 423.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2621, allocations: 342.8 kB / 423.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.2625, allocations: 193 kB / 423.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/0.2631, allocations: 244.6 kB / 423.9 MB, free: 3.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008734/0.2639, allocations: 380.4 kB / 424.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2639, allocations: 4 kB / 424.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00135/0.2653, allocations: 0.598 MB / 424.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.2653, allocations: 11.94 kB / 424.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.2653, allocations: 8.016 kB / 424.8 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009364/0.2663, allocations: 298.5 kB / 425.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.2666, allocations: 71.88 kB / 425.2 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00447/0.2711, allocations: 2.947 MB / 428.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.2714, allocations: 28 kB / 428.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.2715, allocations: 24.06 kB / 428.2 MB, free: 14.89 MB / 350.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.0002601/0.2717, allocations: 161.7 kB / 428.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2718, allocations: 35.75 kB / 428.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.272, allocations: 55.59 kB / 428.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.272, allocations: 7.938 kB / 428.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.272, allocations: 4 kB / 428.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.272, allocations: 0 / 428.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.2744, allocations: 1.278 MB / 429.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2744, allocations: 3.938 kB / 429.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003356/0.2748, allocations: 67.94 kB / 429.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007506/0.2755, allocations: 284.7 kB / 430.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.2755, allocations: 15.98 kB / 430.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004016/0.2796, allocations: 2.862 MB / 433 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2796, allocations: 0 / 433 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.2815, allocations: 0.9429 MB / 433.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.2817, allocations: 160.9 kB / 434.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.447e-05/0.2817, allocations: 15.94 kB / 434.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.2821, allocations: 27.97 kB / 434.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.2822, allocations: 72.33 kB / 434.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.65e-05/0.2823, allocations: 19.92 kB / 434.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.2825, allocations: 208.5 kB / 434.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2825, allocations: 4 kB / 434.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000646/0.2832, allocations: 147.9 kB / 434.6 MB, free: 8.301 MB / 350.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.001332/0.2845, allocations: 378.5 kB / 434.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.2861, allocations: 0.6682 MB / 435.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2861, allocations: 0 / 435.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008668/0.2869, allocations: 455.7 kB / 436 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.2874, allocations: 48.41 kB / 436.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.289, allocations: 0.8194 MB / 436.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.2895, allocations: 0.7929 MB / 437.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002433/0.2897, allocations: 78.89 kB / 437.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.2899, allocations: 47.41 kB / 437.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2899, allocations: 0 / 437.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of Templates: time 0.01551/0.3054, allocations: 8.393 MB / 446.2 MB, free: 12.7 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.smoothness,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi