Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001424/0.001425, allocations: 117.8 kB / 17.79 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 200.6 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2601, allocations: 50.55 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00471/0.2648, allocations: 2.532 MB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.2671, allocations: 1.135 MB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.2674, allocations: 4 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.2678, allocations: 67.44 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006281/0.2684, allocations: 173.7 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.2689, allocations: 187.6 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006745/0.2696, allocations: 0.5219 MB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.2698, allocations: 88.92 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004112/0.2703, allocations: 235.3 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003737/0.2706, allocations: 275.2 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-05/0.2707, allocations: 44 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.271, allocations: 135.9 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.2712, allocations: 115.7 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.2714, allocations: 199.1 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000656/0.272, allocations: 0.5546 MB / 415 MB, free: 11.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2721, allocations: 0 / 415 MB, free: 11.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2721, allocations: 0 / 415 MB, free: 11.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.2721, allocations: 4 kB / 415 MB, free: 11.29 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.001419/0.2735, allocations: 0.7017 MB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2736, allocations: 12.03 kB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.358e-05/0.2737, allocations: 66.72 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000429/0.2741, allocations: 64.44 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005893/0.2747, allocations: 311.6 kB / 416.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.2748, allocations: 96.59 kB / 416.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.639e-05/0.2749, allocations: 40.27 kB / 416.3 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008688/0.2758, allocations: 420.9 kB / 416.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2758, allocations: 0 / 416.7 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.2759, allocations: 12 kB / 416.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.2759, allocations: 8 kB / 416.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.2769, allocations: 474.2 kB / 417.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.2787, allocations: 1.001 MB / 418.2 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008732/0.2796, allocations: 392.5 kB / 418.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.2801, allocations: 226.1 kB / 418.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.2801, allocations: 8.422 kB / 418.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.2801, allocations: 43.12 kB / 418.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/0.2802, allocations: 0 / 418.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005413/0.2856, allocations: 2.144 MB / 421 MB, free: 5.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.2857, allocations: 81.67 kB / 421 MB, free: 4.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003539/0.286, allocations: 277 kB / 421.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.2861, allocations: 37.7 kB / 421.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/0.2862, allocations: 145 kB / 421.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.2863, allocations: 177.5 kB / 421.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.2865, allocations: 94.14 kB / 421.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2866, allocations: 346.8 kB / 422.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004476/0.2871, allocations: 189 kB / 422.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004885/0.2876, allocations: 244.6 kB / 422.5 MB, free: 3.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008497/0.2884, allocations: 384.3 kB / 422.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2884, allocations: 0 / 422.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00129/0.2897, allocations: 0.6212 MB / 423.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.2898, allocations: 7.938 kB / 423.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2898, allocations: 0 / 423.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00082/0.2906, allocations: 294.5 kB / 423.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.2909, allocations: 71.88 kB / 423.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00394/0.2949, allocations: 2.932 MB / 426.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.2952, allocations: 40.06 kB / 426.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/0.2953, allocations: 23.92 kB / 426.9 MB, free: 14.87 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.000214/0.2955, allocations: 165.7 kB / 427 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.2956, allocations: 31.62 kB / 427.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.2958, allocations: 51.61 kB / 427.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.2958, allocations: 11.94 kB / 427.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2958, allocations: 4 kB / 427.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.2958, allocations: 3.984 kB / 427.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.2981, allocations: 1.297 MB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2981, allocations: 0 / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.2984, allocations: 71.92 kB / 428.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007229/0.2992, allocations: 284.5 kB / 428.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.565e-05/0.2992, allocations: 15.98 kB / 428.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003692/0.3029, allocations: 2.846 MB / 431.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3029, allocations: 3.938 kB / 431.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.3048, allocations: 0.9428 MB / 432.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.305, allocations: 156.7 kB / 432.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.387e-05/0.3051, allocations: 15.94 kB / 432.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.3054, allocations: 31.97 kB / 432.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.3056, allocations: 72.39 kB / 432.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.901e-05/0.3056, allocations: 19.98 kB / 432.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.3059, allocations: 204.5 kB / 433.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3059, allocations: 0 / 433.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006207/0.3065, allocations: 152 kB / 433.2 MB, free: 8.273 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.002975/0.3095, allocations: 1.791 MB / 435 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.311, allocations: 0.6917 MB / 435.7 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.311, allocations: 4 kB / 435.7 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008909/0.3119, allocations: 479.6 kB / 436.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.3124, allocations: 47.45 kB / 436.2 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006418/0.3188, allocations: 3.815 MB / 440 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.3193, allocations: 0.8007 MB / 440.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002917/0.3196, allocations: 82.89 kB / 440.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.3198, allocations: 107.4 kB / 441 MB, free: 408 kB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3198, allocations: 0 / 441 MB, free: 408 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05321/0.373, allocations: 11.98 MB / 453 MB, free: 4.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.4, allocations: 10.62 kB / 453 MB, free: 4.578 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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,DriveSine.y,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,PowerLoss,der(Inertia1.phi),der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),der(gear.w_a),fixed.flange.phi,fixed.flange.tau,fixed.phi0,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.support.phi,gear.support.tau,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,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport