Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008761/0.0008761, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 226.5 MB / 244.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007628/0.000763, allocations: 94.66 kB / 296.7 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002057, allocations: 8 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.173, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.001912/0.1749, allocations: 2.139 MB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.176, allocations: 1.046 MB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1762, allocations: 7.938 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.1764, allocations: 51.69 kB / 411.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002821/0.1767, allocations: 138.7 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.1769, allocations: 140.4 kB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.1772, allocations: 455 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1774, allocations: 72.19 kB / 412.2 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.1776, allocations: 219.3 kB / 412.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.1778, allocations: 239.2 kB / 412.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.1778, allocations: 24 kB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.178, allocations: 99.95 kB / 412.7 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.585e-05/0.1781, allocations: 87.7 kB / 412.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1782, allocations: 196.9 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.1785, allocations: 404.2 kB / 413.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1785, allocations: 0 / 413.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1785, allocations: 4 kB / 413.4 MB, free: 22.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1785, allocations: 0 / 413.4 MB, free: 22.38 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0009388/0.1795, allocations: 0.6472 MB / 414.1 MB, free: 21.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1795, allocations: 11.97 kB / 414.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.901e-05/0.1796, allocations: 74.72 kB / 414.1 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.1799, allocations: 60.53 kB / 414.2 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1802, allocations: 327.2 kB / 414.5 MB, free: 21.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.326e-05/0.1803, allocations: 88.61 kB / 414.6 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.1804, allocations: 36.36 kB / 414.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006669/0.1811, allocations: 424.9 kB / 415.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1811, allocations: 0 / 415.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.1812, allocations: 15.98 kB / 415.1 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.1812, allocations: 8 kB / 415.1 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008331/0.182, allocations: 490.2 kB / 415.6 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.1834, allocations: 1.001 MB / 416.6 MB, free: 19.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.1841, allocations: 396.4 kB / 416.9 MB, free: 18.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.1845, allocations: 234.1 kB / 417.2 MB, free: 18.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.1845, allocations: 12.42 kB / 417.2 MB, free: 18.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/0.1846, allocations: 39.12 kB / 417.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.472e-06/0.1846, allocations: 0 / 417.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.00445/0.189, allocations: 2.21 MB / 419.4 MB, free: 16.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.435e-05/0.1891, allocations: 85.67 kB / 419.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.1893, allocations: 272.1 kB / 419.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.1893, allocations: 37.7 kB / 419.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.1894, allocations: 133.2 kB / 420 MB, free: 15.49 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.768e-05/0.1895, allocations: 185.3 kB / 420.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.1895, allocations: 8 kB / 420.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.564e-05/0.1896, allocations: 342.8 kB / 420.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.19, allocations: 197 kB / 420.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003929/0.1904, allocations: 244.6 kB / 420.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007115/0.1911, allocations: 400.3 kB / 421.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1911, allocations: 0 / 421.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001068/0.1922, allocations: 0.6212 MB / 421.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.1922, allocations: 7.938 kB / 421.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.309e-06/0.1922, allocations: 3.984 kB / 421.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006754/0.1929, allocations: 294.5 kB / 422.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.1932, allocations: 75.88 kB / 422.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.196, allocations: 2.696 MB / 425 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.1963, allocations: 40.03 kB / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.1963, allocations: 19.98 kB / 425 MB, free: 10.23 MB / 298.7 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.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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001353/0.1965, allocations: 157.8 kB / 425.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.283e-05/0.1965, allocations: 35.62 kB / 425.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.1966, allocations: 51.25 kB / 425.3 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1966, allocations: 4 kB / 425.3 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.1967, allocations: 7.922 kB / 425.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1967, allocations: 4 kB / 425.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.1984, allocations: 1.307 MB / 426.6 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1984, allocations: 4 kB / 426.6 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.1988, allocations: 67.89 kB / 426.7 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000621/0.1994, allocations: 284.6 kB / 427 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.1994, allocations: 15.98 kB / 427 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0026/0.202, allocations: 2.62 MB / 429.6 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2021, allocations: 0 / 429.6 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.2036, allocations: 0.965 MB / 430.6 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.2037, allocations: 172.7 kB / 430.7 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.445e-05/0.2038, allocations: 12 kB / 430.7 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.2041, allocations: 39.97 kB / 430.8 MB, free: 4.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.2043, allocations: 72.3 kB / 430.8 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.2043, allocations: 19.98 kB / 430.9 MB, free: 4.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001769/0.2045, allocations: 201.6 kB / 431.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2045, allocations: 4 kB / 431.1 MB, free: 3.961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005022/0.205, allocations: 156 kB / 431.2 MB, free: 3.809 MB / 298.7 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 (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.002414/0.2074, allocations: 1.801 MB / 433 MB, free: 2.094 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.2086, allocations: 0.7033 MB / 433.7 MB, free: 1.375 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2086, allocations: 4 kB / 433.7 MB, free: 1.371 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006563/0.2092, allocations: 483.6 kB / 434.2 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.2097, allocations: 47.48 kB / 434.2 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.2135, allocations: 2.468 MB / 436.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.2138, allocations: 0.8009 MB / 437.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.214, allocations: 111.4 kB / 437.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of SimCode: time 3.61e-07/0.214, allocations: 0 / 437.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.321/3.535, allocations: 7.083 MB / 444.7 MB, free: 6.293 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.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_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.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_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,load.duration,load.height,load.offset,load.startTime,load.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.support.phi,torque1.support.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.support.phi,torque2.support.tau,torque2.tau,torque2.useSupport