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.001752/0.001752, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001963/0.001963, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.394/1.394, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2508, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003532/0.2544, allocations: 2.346 MB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.256, allocations: 0.9131 MB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.2562, allocations: 7.938 kB / 403.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.2564, allocations: 43.58 kB / 403.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.2569, allocations: 141.2 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.2572, allocations: 171.7 kB / 403.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004718/0.2577, allocations: 418.8 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.2579, allocations: 64.67 kB / 404.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.2581, allocations: 191.4 kB / 404.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.2584, allocations: 215.3 kB / 404.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.203e-05/0.2585, allocations: 32 kB / 404.7 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002504/0.2588, allocations: 123.8 kB / 404.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.2589, allocations: 95.72 kB / 405 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.2591, allocations: 167.2 kB / 405.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005589/0.2597, allocations: 457.3 kB / 405.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2597, allocations: 0 / 405.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2597, allocations: 4 kB / 405.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2597, allocations: 0 / 405.6 MB, free: 3.449 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.001217/0.2609, allocations: 0.635 MB / 406.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.261, allocations: 16.03 kB / 406.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.965e-05/0.2611, allocations: 66.72 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.2613, allocations: 48.73 kB / 406.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.2618, allocations: 300.3 kB / 406.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.262, allocations: 88.52 kB / 406.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.47e-05/0.262, allocations: 28.38 kB / 406.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/0.2628, allocations: 385.2 kB / 407.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.2628, allocations: 7.953 kB / 407.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.2629, allocations: 11.98 kB / 407.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.2629, allocations: 8 kB / 407.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008725/0.2638, allocations: 413.9 kB / 407.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002095/0.2659, allocations: 1.238 MB / 408.8 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007066/0.2666, allocations: 360.2 kB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003892/0.267, allocations: 188.8 kB / 409.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.267, allocations: 8 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.2671, allocations: 34.56 kB / 409.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.2671, allocations: 0 / 409.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004917/0.272, allocations: 1.915 MB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.356e-05/0.2721, allocations: 84.86 kB / 411.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.2724, allocations: 246.2 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.2725, allocations: 41.7 kB / 411.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.2726, allocations: 132.8 kB / 411.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.2727, allocations: 162.8 kB / 411.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.2729, allocations: 78.12 kB / 412 MB, free: 12.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.2731, allocations: 334.8 kB / 412.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/0.2735, allocations: 168.8 kB / 412.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005258/0.274, allocations: 237.8 kB / 412.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.2748, allocations: 343.2 kB / 413.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2748, allocations: 4 kB / 413.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001333/0.2761, allocations: 0.5591 MB / 413.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.2761, allocations: 8 kB / 413.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2762, allocations: 0 / 413.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007952/0.277, allocations: 256.7 kB / 413.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.2772, allocations: 55.84 kB / 413.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004316/0.2815, allocations: 2.883 MB / 416.8 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.2818, allocations: 27.97 kB / 416.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.2819, allocations: 16 kB / 416.9 MB, free: 7.574 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.0002415/0.2821, allocations: 165.8 kB / 417 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.102e-05/0.2822, allocations: 23.86 kB / 417.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.2823, allocations: 46.98 kB / 417.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.2823, allocations: 4 kB / 417.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2823, allocations: 0 / 417.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2823, allocations: 0 / 417.1 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.2847, allocations: 1.086 MB / 418.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2847, allocations: 4 kB / 418.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.285, allocations: 51.91 kB / 418.2 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006465/0.2856, allocations: 233.1 kB / 418.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.2857, allocations: 15.92 kB / 418.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/0.2897, allocations: 2.837 MB / 421.3 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.2898, allocations: 3.984 kB / 421.3 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.2913, allocations: 0.8237 MB / 422.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.2915, allocations: 136.9 kB / 422.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.789e-05/0.2916, allocations: 15.94 kB / 422.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000251/0.2919, allocations: 27.91 kB / 422.3 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.292, allocations: 59.91 kB / 422.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.2921, allocations: 12 kB / 422.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002201/0.2923, allocations: 188.3 kB / 422.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2923, allocations: 0 / 422.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005781/0.2929, allocations: 135.9 kB / 422.7 MB, free: 1.48 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.002199/0.2951, allocations: 1.429 MB / 424.1 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.2965, allocations: 0.6291 MB / 424.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2965, allocations: 0 / 424.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007344/0.2972, allocations: 433.3 kB / 425.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.2976, allocations: 39.97 kB / 425.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005636/0.3033, allocations: 3.459 MB / 428.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.3038, allocations: 0.78 MB / 429.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001766/0.3039, allocations: 58.95 kB / 429.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.3041, allocations: 79.41 kB / 429.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3041, allocations: 0 / 429.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03887/0.343, allocations: 9.871 MB / 439.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.95, allocations: 8.062 kB / 439.5 MB, free: 0.6562 MB / 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