Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008855/0.0008855, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007023/0.0007022, allocations: 103.4 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002222, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1779, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.001832/0.1798, allocations: 2.061 MB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.1809, allocations: 0.9978 MB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.181, allocations: 5.188 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.1812, allocations: 51.69 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000269/0.1815, allocations: 129.5 kB / 411.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.1818, allocations: 130.3 kB / 411.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.1821, allocations: 414.7 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.1822, allocations: 56.7 kB / 412 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.1824, allocations: 175.5 kB / 412.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.1826, allocations: 215.3 kB / 412.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.1826, allocations: 20 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001612/0.1828, allocations: 99.89 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.1829, allocations: 79.77 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.183, allocations: 181 kB / 412.7 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.1833, allocations: 364.4 kB / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1833, allocations: 0 / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1833, allocations: 4 kB / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1833, allocations: 0 / 413.1 MB, free: 22.73 MB / 298.7 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.0008498/0.1842, allocations: 0.6005 MB / 413.7 MB, free: 22.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.1842, allocations: 8.031 kB / 413.7 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.823e-05/0.1843, allocations: 74.66 kB / 413.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002514/0.1845, allocations: 44.55 kB / 413.8 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.1848, allocations: 301.4 kB / 414.1 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.291e-05/0.1849, allocations: 88.52 kB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.185, allocations: 28.38 kB / 414.2 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.1856, allocations: 389.1 kB / 414.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1856, allocations: 4 kB / 414.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.1857, allocations: 12 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1857, allocations: 8 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007155/0.1864, allocations: 425.9 kB / 415 MB, free: 20.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.188, allocations: 1.284 MB / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/0.1886, allocations: 344.1 kB / 416.6 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.1889, allocations: 188.8 kB / 416.8 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.1889, allocations: 8.141 kB / 416.8 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.189, allocations: 42.55 kB / 416.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.984e-06/0.189, allocations: 0 / 416.9 MB, free: 18.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004003/0.193, allocations: 1.949 MB / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.193, allocations: 96.8 kB / 418.9 MB, free: 16.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.1933, allocations: 242.5 kB / 419.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.1933, allocations: 37.7 kB / 419.2 MB, free: 16.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.962e-05/0.1934, allocations: 136.7 kB / 419.3 MB, free: 16.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.35e-05/0.1934, allocations: 149.8 kB / 419.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.1935, allocations: 12 kB / 419.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.386e-05/0.1935, allocations: 334.8 kB / 419.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/0.1939, allocations: 164.8 kB / 420 MB, free: 15.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.1942, allocations: 225.9 kB / 420.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005711/0.1948, allocations: 347.1 kB / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1948, allocations: 3.938 kB / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009172/0.1957, allocations: 0.559 MB / 421.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1957, allocations: 4 kB / 421.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1957, allocations: 0 / 421.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006593/0.1964, allocations: 304.7 kB / 421.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.1966, allocations: 55.89 kB / 421.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002786/0.1994, allocations: 2.66 MB / 424.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.1997, allocations: 35.94 kB / 424.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.1998, allocations: 20 kB / 424.2 MB, free: 11.07 MB / 298.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.1999, allocations: 153.8 kB / 424.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.426e-05/0.2, allocations: 27.66 kB / 424.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.242e-05/0.2001, allocations: 42.98 kB / 424.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2001, allocations: 4 kB / 424.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2001, allocations: 4 kB / 424.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2001, allocations: 3.938 kB / 424.4 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/0.2016, allocations: 1.113 MB / 425.5 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2017, allocations: 0 / 425.5 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/0.2019, allocations: 51.91 kB / 425.6 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006238/0.2025, allocations: 276.8 kB / 425.8 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.2026, allocations: 15.98 kB / 425.8 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002653/0.2052, allocations: 2.615 MB / 428.5 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2053, allocations: 4 kB / 428.5 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.2065, allocations: 0.8255 MB / 429.3 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.2067, allocations: 156.7 kB / 429.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.046e-05/0.2067, allocations: 8 kB / 429.4 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.207, allocations: 36.03 kB / 429.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.2072, allocations: 71.86 kB / 429.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.2072, allocations: 15.98 kB / 429.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001648/0.2074, allocations: 180.5 kB / 429.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2074, allocations: 0 / 429.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005152/0.2079, allocations: 132 kB / 429.9 MB, free: 5.109 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002058/0.21, allocations: 1.658 MB / 431.5 MB, free: 3.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.211, allocations: 0.6287 MB / 432.2 MB, free: 2.902 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.211, allocations: 0 / 432.2 MB, free: 2.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005541/0.2116, allocations: 425.6 kB / 432.6 MB, free: 2.473 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.212, allocations: 47.12 kB / 432.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.2149, allocations: 2.142 MB / 434.8 MB, free: 236 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.2152, allocations: 0.7803 MB / 435.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.2154, allocations: 95.38 kB / 435.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2154, allocations: 0 / 435.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.345/3.561, allocations: 6.263 MB / 441.9 MB, free: 9.062 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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_mf1_0,gear.eta_mf2,gear.eta_mf2_0,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.phi_support,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_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,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.phi_support,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.tau,torque2.useSupport