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.001289/0.001289, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 206 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.397/1.397, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2466, allocations: 50.55 MB / 408.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003992/0.2506, allocations: 2.53 MB / 411.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.2526, allocations: 1.139 MB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.2527, allocations: 4 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.253, allocations: 71.36 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000458/0.2535, allocations: 166.1 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.2539, allocations: 183.6 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005683/0.2545, allocations: 0.5141 MB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.2547, allocations: 88.91 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003624/0.2551, allocations: 247.3 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.2554, allocations: 275.1 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.767e-05/0.2555, allocations: 44 kB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.2558, allocations: 128 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.2559, allocations: 119.7 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.2561, allocations: 203 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006538/0.2568, allocations: 0.544 MB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2568, allocations: 4 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2568, allocations: 0 / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2568, allocations: 0 / 415 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.001332/0.2582, allocations: 0.7204 MB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2582, allocations: 15.97 kB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.586e-05/0.2583, allocations: 70.72 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003904/0.2587, allocations: 60.67 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.2592, allocations: 311.8 kB / 416.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.2594, allocations: 92.61 kB / 416.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.2595, allocations: 40.31 kB / 416.3 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000824/0.2603, allocations: 420.9 kB / 416.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2603, allocations: 4 kB / 416.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.2604, allocations: 8 kB / 416.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.2604, allocations: 8 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.2614, allocations: 474.2 kB / 417.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.2632, allocations: 0.9971 MB / 418.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008807/0.2641, allocations: 396.4 kB / 418.6 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004981/0.2646, allocations: 226.1 kB / 418.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.2646, allocations: 12.42 kB / 418.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.2647, allocations: 42.98 kB / 418.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.834e-06/0.2647, allocations: 0 / 418.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005478/0.2702, allocations: 2.156 MB / 421.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.2703, allocations: 93.61 kB / 421.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.2706, allocations: 269 kB / 421.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.2707, allocations: 37.7 kB / 421.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2708, allocations: 137.2 kB / 421.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.271, allocations: 194.4 kB / 421.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.2711, allocations: 90.23 kB / 421.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2713, allocations: 342.8 kB / 422.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004617/0.2718, allocations: 193 kB / 422.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005002/0.2723, allocations: 240.6 kB / 422.6 MB, free: 3.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008843/0.2732, allocations: 380.4 kB / 423 MB, free: 2.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2732, allocations: 0 / 423 MB, free: 2.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00134/0.2745, allocations: 0.6136 MB / 423.6 MB, free: 2.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.2746, allocations: 11.92 kB / 423.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2746, allocations: 0 / 423.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008416/0.2754, allocations: 298.5 kB / 423.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.2757, allocations: 67.88 kB / 424 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004355/0.2801, allocations: 2.955 MB / 426.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.2805, allocations: 31.97 kB / 427 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.2806, allocations: 19.98 kB / 427 MB, free: 14.75 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.0002339/0.2808, allocations: 165.7 kB / 427.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-05/0.2809, allocations: 35.75 kB / 427.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.281, allocations: 51.61 kB / 427.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.281, allocations: 12 kB / 427.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.281, allocations: 0 / 427.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.2811, allocations: 3.984 kB / 427.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.2834, allocations: 1.286 MB / 428.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.2834, allocations: 4.031 kB / 428.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/0.2837, allocations: 67.94 kB / 428.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007495/0.2845, allocations: 296.5 kB / 428.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.187e-05/0.2846, allocations: 15.98 kB / 428.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004041/0.2886, allocations: 2.853 MB / 431.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2886, allocations: 0 / 431.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.2906, allocations: 0.9584 MB / 432.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.2909, allocations: 156.9 kB / 432.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.065e-05/0.2909, allocations: 15.94 kB / 432.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003086/0.2912, allocations: 28.03 kB / 432.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.2914, allocations: 76.33 kB / 433 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.2915, allocations: 19.98 kB / 433 MB, free: 8.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002749/0.2918, allocations: 200.5 kB / 433.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2918, allocations: 3.938 kB / 433.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006316/0.2924, allocations: 151.9 kB / 433.3 MB, free: 8.129 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.003516/0.296, allocations: 1.783 MB / 435.1 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.2975, allocations: 0.6994 MB / 435.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2975, allocations: 0 / 435.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008782/0.2984, allocations: 479.7 kB / 436.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.2989, allocations: 51.52 kB / 436.3 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006434/0.3053, allocations: 3.828 MB / 440.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.3059, allocations: 0.7929 MB / 441 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002793/0.3061, allocations: 90.89 kB / 441.1 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.3064, allocations: 107.4 kB / 441.2 MB, free: 244 kB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3064, allocations: 0 / 441.2 MB, free: 244 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04352/0.3499, allocations: 11.61 MB / 452.8 MB, free: 4.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.52, allocations: 10.59 kB / 452.8 MB, free: 4.785 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.1.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