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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 117.7 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2422, allocations: 50.53 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003822/0.246, allocations: 2.449 MB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.2479, allocations: 1.061 MB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00022/0.2481, allocations: 7.938 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003088/0.2485, allocations: 59.48 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004984/0.249, allocations: 150.4 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/0.2494, allocations: 159.7 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000533/0.2499, allocations: 478.6 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.2501, allocations: 71.52 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002825/0.2504, allocations: 199.5 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003605/0.2508, allocations: 247.2 kB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.746e-05/0.2509, allocations: 39.94 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002552/0.2511, allocations: 124 kB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.2513, allocations: 115.7 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.2514, allocations: 163.2 kB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000562/0.252, allocations: 0.4963 MB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.252, allocations: 4 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.252, allocations: 0 / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.2521, allocations: 3.938 kB / 414.5 MB, free: 11.71 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.001254/0.2533, allocations: 0.6667 MB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2534, allocations: 8.031 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.13e-05/0.2534, allocations: 58.73 kB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000326/0.2538, allocations: 56.52 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.2543, allocations: 309.3 kB / 415.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.2544, allocations: 84.52 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.712e-05/0.2545, allocations: 32.38 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.2552, allocations: 389.1 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.2553, allocations: 7.906 kB / 416.1 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.2553, allocations: 8 kB / 416.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.2553, allocations: 8 kB / 416.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00084/0.2562, allocations: 413.9 kB / 416.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.2582, allocations: 1.257 MB / 417.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006808/0.2589, allocations: 354 kB / 418.1 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003736/0.2593, allocations: 180.8 kB / 418.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.2594, allocations: 8.141 kB / 418.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.2594, allocations: 39.28 kB / 418.4 MB, free: 7.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.295e-06/0.2594, allocations: 0 / 418.4 MB, free: 7.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004775/0.2642, allocations: 1.909 MB / 420.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.2643, allocations: 84.86 kB / 420.4 MB, free: 5.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.2646, allocations: 243 kB / 420.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/0.2647, allocations: 37.7 kB / 420.6 MB, free: 5.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.502e-05/0.2647, allocations: 136.6 kB / 420.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.2649, allocations: 153.8 kB / 420.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.265, allocations: 82.11 kB / 421 MB, free: 4.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.2651, allocations: 334.8 kB / 421.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.2655, allocations: 172.8 kB / 421.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/0.2659, allocations: 229.8 kB / 421.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006906/0.2666, allocations: 339.2 kB / 422 MB, free: 3.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2666, allocations: 0 / 422 MB, free: 3.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001137/0.2678, allocations: 0.5512 MB / 422.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.2678, allocations: 4 kB / 422.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2678, allocations: 4.125 kB / 422.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007859/0.2686, allocations: 304.5 kB / 422.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.2689, allocations: 51.91 kB / 422.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/0.2726, allocations: 2.886 MB / 425.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002966/0.273, allocations: 32 kB / 425.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.273, allocations: 19.98 kB / 425.9 MB, free: 15.77 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.0001932/0.2732, allocations: 161.7 kB / 426 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.84e-05/0.2733, allocations: 27.62 kB / 426.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.614e-05/0.2734, allocations: 42.98 kB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.2734, allocations: 11.94 kB / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2734, allocations: 0 / 426.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2735, allocations: 3.984 kB / 426.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001913/0.2754, allocations: 1.113 MB / 427.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.2754, allocations: 0 / 427.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.2756, allocations: 47.89 kB / 427.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007139/0.2764, allocations: 288.8 kB / 427.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/0.2764, allocations: 19.92 kB / 427.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003616/0.28, allocations: 2.831 MB / 430.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2801, allocations: 0 / 430.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.2816, allocations: 0.816 MB / 431.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.2818, allocations: 144.8 kB / 431.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.811e-05/0.2819, allocations: 15.94 kB / 431.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.2822, allocations: 19.97 kB / 431.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.2824, allocations: 67.97 kB / 431.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.2824, allocations: 15.98 kB / 431.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.2826, allocations: 184.2 kB / 431.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2826, allocations: 0 / 431.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006093/0.2833, allocations: 140 kB / 431.8 MB, free: 9.598 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.002597/0.2859, allocations: 1.657 MB / 433.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.2872, allocations: 0.6211 MB / 434.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2872, allocations: 0 / 434.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007262/0.288, allocations: 437.3 kB / 434.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.2884, allocations: 41.67 kB / 434.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00523/0.2937, allocations: 3.406 MB / 438 MB, free: 3.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.294, allocations: 0.78 MB / 438.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.2943, allocations: 78.89 kB / 438.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.2945, allocations: 95.33 kB / 438.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2945, allocations: 0 / 438.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03444/0.3289, allocations: 10.85 MB / 449.8 MB, free: 7.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.52, allocations: 0.8906 kB / 449.8 MB, free: 7.73 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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:Inertia1.J,Inertia1.a,Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.stateSelect,Inertia1.w,Inertia2.J,Inertia2.a,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_a,gear.eta_mf1,gear.eta_mf2,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.smoothness,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf2,gear.tau_bf_a,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.tau,torque2.useSupport