Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 199.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.165/1.165, allocations: 226.5 MB / 244.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007325/0.0007325, allocations: 104.9 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002138/0.0002138, allocations: 8 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1794, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.004337/0.1838, allocations: 6.296 MB / 414.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1857, allocations: 2.216 MB / 416.7 MB, free: 19.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002596/0.186, allocations: 16 kB / 416.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007173/0.1867, allocations: 417.6 kB / 417.1 MB, free: 18.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004047/0.1872, allocations: 313.7 kB / 417.4 MB, free: 18.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.1874, allocations: 131.9 kB / 417.5 MB, free: 18.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006412/0.188, allocations: 1.117 MB / 418.6 MB, free: 17.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.1885, allocations: 442.7 kB / 419.1 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.1888, allocations: 382.2 kB / 419.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.189, allocations: 410.1 kB / 419.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.705e-05/0.1891, allocations: 52 kB / 419.9 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.1893, allocations: 91.97 kB / 420 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.546e-05/0.1894, allocations: 155.2 kB / 420.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.1896, allocations: 487.5 kB / 420.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.1902, allocations: 1.122 MB / 421.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1902, allocations: 0 / 421.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1902, allocations: 4 kB / 421.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1903, allocations: 0 / 421.7 MB, free: 14.05 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00122/0.1915, allocations: 1.095 MB / 422.8 MB, free: 12.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.1915, allocations: 12.03 kB / 422.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.811e-05/0.1916, allocations: 123.1 kB / 423 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003789/0.192, allocations: 151.6 kB / 423.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006362/0.1927, allocations: 0.6338 MB / 423.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.1927, allocations: 58.38 kB / 423.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.929e-05/0.1928, allocations: 92.02 kB / 423.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009981/0.1938, allocations: 0.7754 MB / 424.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.1938, allocations: 4 kB / 424.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.056e-05/0.1939, allocations: 32 kB / 424.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.1939, allocations: 24 kB / 424.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000815/0.1947, allocations: 0.5231 MB / 425.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.1974, allocations: 3.411 MB / 428.7 MB, free: 6.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/0.1978, allocations: 234.5 kB / 428.9 MB, free: 6.539 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.198, allocations: 127.8 kB / 429 MB, free: 6.414 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.1981, allocations: 4 kB / 429 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.339e-05/0.1981, allocations: 38.5 kB / 429 MB, free: 6.363 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.273e-06/0.1981, allocations: 0 / 429 MB, free: 6.363 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001517/0.1996, allocations: 1.077 MB / 430.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.1997, allocations: 77.34 kB / 430.2 MB, free: 5.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006668/0.2003, allocations: 0.7348 MB / 430.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.2003, allocations: 37.64 kB / 431 MB, free: 4.336 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.2005, allocations: 0.4943 MB / 431.5 MB, free: 3.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.497e-05/0.2006, allocations: 102.5 kB / 431.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.2006, allocations: 12 kB / 431.6 MB, free: 3.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.069e-05/0.2007, allocations: 382.8 kB / 432 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.2009, allocations: 121.2 kB / 432.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.2012, allocations: 430.2 kB / 432.5 MB, free: 2.664 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005444/0.2018, allocations: 0.5809 MB / 433.1 MB, free: 1.949 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2018, allocations: 7.938 kB / 433.1 MB, free: 1.941 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007894/0.2026, allocations: 0.6269 MB / 433.7 MB, free: 1.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.2026, allocations: 8 kB / 433.7 MB, free: 1.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2026, allocations: 8 kB / 433.7 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001135/0.2027, allocations: 32.86 kB / 433.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.2031, allocations: 143.7 kB / 433.9 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006137/0.2037, allocations: 1.28 MB / 435.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.2041, allocations: 48.03 kB / 435.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.2042, allocations: 35.94 kB / 435.3 MB, free: 15.62 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002345/0.2044, allocations: 229.6 kB / 435.5 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.2045, allocations: 71.16 kB / 435.5 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005882/0.2051, allocations: 337.4 kB / 435.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2051, allocations: 4 kB / 435.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2051, allocations: 3.938 kB / 435.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2051, allocations: 0 / 435.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00134/0.2064, allocations: 1.121 MB / 437 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.2065, allocations: 0 / 437 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.2067, allocations: 63.91 kB / 437.1 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.804e-05/0.2068, allocations: 29 kB / 437.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.2068, allocations: 12 kB / 437.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006782/0.2075, allocations: 1.272 MB / 438.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2075, allocations: 11.91 kB / 438.4 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007774/0.2083, allocations: 0.56 MB / 439 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.2085, allocations: 180.1 kB / 439.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.599e-05/0.2086, allocations: 8 kB / 439.1 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/0.2089, allocations: 23.98 kB / 439.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.2089, allocations: 23.97 kB / 439.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.2089, allocations: 12 kB / 439.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000546/0.2095, allocations: 0.4951 MB / 439.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2095, allocations: 4 kB / 439.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005062/0.21, allocations: 159.9 kB / 439.9 MB, free: 10.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001055/0.2111, allocations: 1.129 MB / 441 MB, free: 9.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007405/0.2118, allocations: 472.7 kB / 441.4 MB, free: 9.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.2118, allocations: 4.188 kB / 441.4 MB, free: 9.066 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.2122, allocations: 238.5 kB / 441.7 MB, free: 8.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009602/0.2131, allocations: 184.6 kB / 441.9 MB, free: 8.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005877/0.219, allocations: 4.416 MB / 446.3 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.2195, allocations: 0.9414 MB / 447.2 MB, free: 3.039 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.2198, allocations: 303.3 kB / 447.5 MB, free: 2.742 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2198, allocations: 0 / 447.5 MB, free: 2.742 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.619/3.839, allocations: 15.66 MB / 463.2 MB, free: 3.055 MB / 330.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches