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.001205/0.001205, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 68.22 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08039/0.08175, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003515/0.08529, allocations: 2.489 MB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.08686, allocations: 1.049 MB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.08702, allocations: 8 kB / 360.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002533/0.0873, allocations: 47.7 kB / 360.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003725/0.08768, allocations: 134.7 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.08803, allocations: 147.8 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.08848, allocations: 466.7 kB / 361.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.08864, allocations: 72.69 kB / 361.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.08888, allocations: 203.5 kB / 361.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.08918, allocations: 243.2 kB / 361.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.513e-05/0.08926, allocations: 40 kB / 362 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.08948, allocations: 123.9 kB / 362.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.0896, allocations: 103.7 kB / 362.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.08976, allocations: 179.1 kB / 362.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.09023, allocations: 498.8 kB / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.09024, allocations: 0 / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09025, allocations: 0 / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.09026, allocations: 4 kB / 362.8 MB, free: 8.52 MB / 302.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.001109/0.09138, allocations: 0.6666 MB / 363.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.09142, allocations: 12.03 kB / 363.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.125e-05/0.0915, allocations: 62.73 kB / 363.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002986/0.09181, allocations: 52.53 kB / 363.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.09219, allocations: 297.5 kB / 363.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.09231, allocations: 84.52 kB / 364 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.09237, allocations: 32.28 kB / 364 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/0.09304, allocations: 389.1 kB / 364.4 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.09306, allocations: 4 kB / 364.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.0931, allocations: 8 kB / 364.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.09311, allocations: 11.98 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007893/0.09391, allocations: 413.9 kB / 364.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.09575, allocations: 1.269 MB / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006313/0.0964, allocations: 351.2 kB / 366.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003478/0.09676, allocations: 180.8 kB / 366.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.0968, allocations: 4 kB / 366.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.09683, allocations: 39.28 kB / 366.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.685e-06/0.09684, allocations: 4 kB / 366.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004386/0.1012, allocations: 1.898 MB / 368.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.1013, allocations: 88.86 kB / 368.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.1016, allocations: 246.1 kB / 368.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.1016, allocations: 41.69 kB / 368.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.958e-05/0.1017, allocations: 132.6 kB / 369.1 MB, free: 1.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.1018, allocations: 154 kB / 369.2 MB, free: 1.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.1019, allocations: 82.11 kB / 369.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/0.102, allocations: 334.8 kB / 369.6 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.1024, allocations: 164.8 kB / 369.8 MB, free: 1.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.1028, allocations: 229.8 kB / 370 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.1034, allocations: 343.2 kB / 370.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1034, allocations: 0 / 370.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001029/0.1045, allocations: 0.5473 MB / 370.9 MB, free: 24 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.1045, allocations: 12 kB / 370.9 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1045, allocations: 3.984 kB / 370.9 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1249/0.2294, allocations: 286.3 kB / 371.2 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.2297, allocations: 56.91 kB / 371.3 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003366/0.2331, allocations: 2.889 MB / 374.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.2334, allocations: 26.94 kB / 374.2 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.133e-05/0.2335, allocations: 23.11 kB / 374.2 MB, free: 18.75 MB / 302.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.0001662/0.2336, allocations: 162.5 kB / 374.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.562e-05/0.2337, allocations: 26.8 kB / 374.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.778e-05/0.2338, allocations: 46.03 kB / 374.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2338, allocations: 5.531 kB / 374.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.2338, allocations: 4.094 kB / 374.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2338, allocations: 2.719 kB / 374.4 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.2356, allocations: 1.115 MB / 375.5 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2356, allocations: 3.688 kB / 375.6 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.2358, allocations: 52.78 kB / 375.6 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006489/0.2365, allocations: 279.6 kB / 375.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.2365, allocations: 14.62 kB / 375.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/0.2394, allocations: 2.845 MB / 378.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2394, allocations: 6.047 kB / 378.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.2407, allocations: 0.8063 MB / 379.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.2409, allocations: 149.7 kB / 379.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.2409, allocations: 7.781 kB / 379.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.2412, allocations: 29.09 kB / 379.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.2414, allocations: 63.95 kB / 379.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.2414, allocations: 16.66 kB / 379.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000182/0.2416, allocations: 183.6 kB / 380 MB, free: 15.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2416, allocations: 0 / 380 MB, free: 15.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005342/0.2421, allocations: 135.4 kB / 380.1 MB, free: 15.06 MB / 302.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.002233/0.2444, allocations: 1.667 MB / 381.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.2455, allocations: 0.6318 MB / 382.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2455, allocations: 0 / 382.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006244/0.2462, allocations: 436.2 kB / 382.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.2466, allocations: 42.19 kB / 382.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.2511, allocations: 3.537 MB / 386.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.2513, allocations: 0.7784 MB / 387.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002269/0.2516, allocations: 76.08 kB / 387.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.2517, allocations: 91.47 kB / 387.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2517, allocations: 1.969 kB / 387.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8078/1.06, allocations: 10.25 MB / 397.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/1.06, allocations: 281.9 kB / 397.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/3.232, allocations: 3.938 kB / 397.9 MB, free: 6.086 MB / 302.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