Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 106 kB / 17.06 MB, free: 6.133 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 195 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 51.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2759, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003689/0.2796, allocations: 2.342 MB / 402.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.2814, allocations: 0.9131 MB / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.2816, allocations: 0 / 403.5 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.2818, allocations: 55.45 kB / 403.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005212/0.2824, allocations: 135.1 kB / 403.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003752/0.2828, allocations: 179.7 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.2832, allocations: 414.8 kB / 404.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.2834, allocations: 72.66 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.2837, allocations: 179.5 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002975/0.284, allocations: 215.3 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.893e-05/0.284, allocations: 36 kB / 404.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002222/0.2843, allocations: 119.8 kB / 404.9 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.2844, allocations: 99.72 kB / 404.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.2846, allocations: 167.2 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005411/0.2851, allocations: 444.3 kB / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.2851, allocations: 7.938 kB / 405.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2851, allocations: 0 / 405.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2851, allocations: 0 / 405.6 MB, free: 3.484 MB / 318.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.001105/0.2862, allocations: 0.6355 MB / 406.2 MB, free: 2.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2863, allocations: 8.031 kB / 406.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.579e-05/0.2864, allocations: 66.72 kB / 406.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.2867, allocations: 44.55 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000519/0.2872, allocations: 308.2 kB / 406.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.2873, allocations: 88.52 kB / 406.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.607e-05/0.2874, allocations: 24.38 kB / 406.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.2881, allocations: 385.2 kB / 407.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2881, allocations: 0 / 407.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.423e-05/0.2882, allocations: 15.98 kB / 407.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2882, allocations: 4 kB / 407.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008414/0.289, allocations: 421.9 kB / 407.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.2911, allocations: 1.241 MB / 408.8 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007021/0.2918, allocations: 360.2 kB / 409.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/0.2922, allocations: 188.7 kB / 409.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.2922, allocations: 8 kB / 409.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.2923, allocations: 34.56 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.804e-06/0.2923, allocations: 0 / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004772/0.297, allocations: 1.914 MB / 411.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.2971, allocations: 84.86 kB / 411.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.2974, allocations: 250.1 kB / 411.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.2975, allocations: 33.7 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.827e-05/0.2976, allocations: 136.8 kB / 411.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.2977, allocations: 153.8 kB / 411.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.2979, allocations: 82.11 kB / 412 MB, free: 12.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.298, allocations: 334.8 kB / 412.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.2984, allocations: 168.8 kB / 412.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004164/0.2988, allocations: 233.8 kB / 412.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007158/0.2996, allocations: 347.2 kB / 413 MB, free: 11.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.2996, allocations: 0 / 413 MB, free: 11.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001103/0.3007, allocations: 0.5551 MB / 413.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.3007, allocations: 4 kB / 413.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3007, allocations: 4.125 kB / 413.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007754/0.3015, allocations: 256.6 kB / 413.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.3018, allocations: 47.97 kB / 413.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004005/0.3058, allocations: 2.889 MB / 416.8 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.3061, allocations: 23.98 kB / 416.8 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.756e-05/0.3062, allocations: 23.98 kB / 416.8 MB, free: 7.629 MB / 334.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.0002018/0.3064, allocations: 157.8 kB / 417 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.54e-05/0.3065, allocations: 27.62 kB / 417 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.3066, allocations: 42.98 kB / 417.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3066, allocations: 8 kB / 417.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.3066, allocations: 0 / 417.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3066, allocations: 0 / 417.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.3085, allocations: 1.09 MB / 418.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3085, allocations: 0 / 418.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.3088, allocations: 39.97 kB / 418.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006879/0.3094, allocations: 241.1 kB / 418.4 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.3095, allocations: 15.94 kB / 418.4 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/0.3132, allocations: 2.844 MB / 421.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3133, allocations: 0 / 421.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.3148, allocations: 0.8236 MB / 422.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.315, allocations: 140.8 kB / 422.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.315, allocations: 11.94 kB / 422.3 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.3153, allocations: 27.97 kB / 422.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3155, allocations: 63.84 kB / 422.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.3155, allocations: 16.06 kB / 422.4 MB, free: 1.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002024/0.3157, allocations: 184.2 kB / 422.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3157, allocations: 0 / 422.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005873/0.3163, allocations: 136 kB / 422.7 MB, free: 1.535 MB / 334.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.002066/0.3184, allocations: 1.421 MB / 424.1 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3198, allocations: 0.6292 MB / 424.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3198, allocations: 0 / 424.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000759/0.3206, allocations: 433.3 kB / 425.2 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.321, allocations: 31.98 kB / 425.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005179/0.3262, allocations: 3.447 MB / 428.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.3266, allocations: 0.78 MB / 429.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000177/0.3268, allocations: 54.95 kB / 429.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3269, allocations: 79.41 kB / 429.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.327, allocations: 0 / 429.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03802/0.365, allocations: 10.18 MB / 439.7 MB, free: 448 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.15, allocations: 4.062 kB / 439.7 MB, free: 444 kB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.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