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.001358/0.001358, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001424/0.001424, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 67.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2531, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00379/0.2569, allocations: 2.528 MB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.2589, allocations: 1.135 MB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.2591, allocations: 7.938 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.2595, allocations: 63.48 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005475/0.26, allocations: 182.1 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004518/0.2605, allocations: 171.7 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005687/0.2611, allocations: 0.518 MB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.2613, allocations: 100.9 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.2617, allocations: 239.3 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.2621, allocations: 271.2 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.178e-05/0.2622, allocations: 40 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002756/0.2625, allocations: 139.9 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2626, allocations: 119.7 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.2628, allocations: 199.1 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006407/0.2635, allocations: 0.5546 MB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2635, allocations: 0 / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2635, allocations: 0 / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.2635, allocations: 0 / 415 MB, free: 11.28 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.001351/0.2649, allocations: 0.6978 MB / 415.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2649, allocations: 8.031 kB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.44e-05/0.265, allocations: 70.72 kB / 415.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004028/0.2654, allocations: 64.44 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.2659, allocations: 323.6 kB / 416.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.2661, allocations: 88.61 kB / 416.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.2661, allocations: 32.28 kB / 416.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007778/0.2669, allocations: 428.8 kB / 416.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.267, allocations: 0 / 416.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.267, allocations: 12 kB / 416.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.267, allocations: 7.938 kB / 416.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009327/0.268, allocations: 482.2 kB / 417.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.2696, allocations: 0.989 MB / 418.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008455/0.2705, allocations: 392.5 kB / 418.5 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.2709, allocations: 226.1 kB / 418.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.271, allocations: 12.42 kB / 418.8 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.271, allocations: 43.12 kB / 418.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.923e-06/0.271, allocations: 0 / 418.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005236/0.2763, allocations: 2.152 MB / 421 MB, free: 4.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.2763, allocations: 81.67 kB / 421 MB, free: 4.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.2767, allocations: 273 kB / 421.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.2767, allocations: 33.7 kB / 421.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.522e-05/0.2768, allocations: 145 kB / 421.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.277, allocations: 177.5 kB / 421.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.2771, allocations: 98.14 kB / 421.8 MB, free: 4.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2773, allocations: 346.7 kB / 422.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004317/0.2777, allocations: 193 kB / 422.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.2782, allocations: 236.6 kB / 422.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007995/0.279, allocations: 388.3 kB / 422.9 MB, free: 3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.279, allocations: 0 / 422.9 MB, free: 3 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001232/0.2802, allocations: 0.6095 MB / 423.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.2803, allocations: 14.75 kB / 423.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2803, allocations: 0 / 423.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007968/0.2811, allocations: 302.5 kB / 423.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.2814, allocations: 71.88 kB / 423.9 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003966/0.2854, allocations: 2.94 MB / 426.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.2858, allocations: 27.97 kB / 426.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.916e-05/0.2858, allocations: 23.98 kB / 426.9 MB, free: 14.86 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.000242/0.2861, allocations: 165.7 kB / 427 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.2862, allocations: 31.62 kB / 427.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.2863, allocations: 51.61 kB / 427.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.2863, allocations: 4 kB / 427.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2863, allocations: 0 / 427.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.2864, allocations: 7.984 kB / 427.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.2886, allocations: 1.289 MB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.361e-06/0.2886, allocations: 4 kB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.2889, allocations: 75.88 kB / 428.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007088/0.2897, allocations: 284.6 kB / 428.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.677e-05/0.2897, allocations: 19.97 kB / 428.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003655/0.2934, allocations: 2.845 MB / 431.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2934, allocations: 4.062 kB / 431.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.2952, allocations: 0.9427 MB / 432.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.2955, allocations: 156.7 kB / 432.7 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.437e-05/0.2955, allocations: 20 kB / 432.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.2959, allocations: 31.91 kB / 432.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.296, allocations: 72.33 kB / 432.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.2961, allocations: 19.98 kB / 432.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.2963, allocations: 204.5 kB / 433.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2963, allocations: 0 / 433.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000653/0.297, allocations: 148 kB / 433.2 MB, free: 8.266 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.00293/0.2999, allocations: 1.79 MB / 435 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3016, allocations: 0.6917 MB / 435.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3016, allocations: 0 / 435.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008736/0.3025, allocations: 491.6 kB / 436.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.303, allocations: 50.7 kB / 436.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006039/0.309, allocations: 3.815 MB / 440 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.3095, allocations: 0.7968 MB / 440.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002593/0.3097, allocations: 78.89 kB / 440.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002082/0.31, allocations: 107.4 kB / 441 MB, free: 400 kB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.31, allocations: 0 / 441 MB, free: 400 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04075/0.3507, allocations: 11.98 MB / 453 MB, free: 4.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.84, allocations: 18.5 kB / 453 MB, free: 4.566 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