Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000897/0.0008968, allocations: 199.3 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.204/1.204, allocations: 226.5 MB / 244.7 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007098/0.0007098, allocations: 104.8 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001896/0.0001896, allocations: 8 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1688, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.00485/0.1737, allocations: 7.194 MB / 415.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1761, allocations: 2.551 MB / 417.9 MB, free: 17.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000344/0.1764, allocations: 31.88 kB / 417.9 MB, free: 17.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007598/0.1772, allocations: 445.4 kB / 418.3 MB, free: 17.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004775/0.1777, allocations: 365.2 kB / 418.7 MB, free: 17.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.1781, allocations: 243.5 kB / 418.9 MB, free: 16.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007553/0.1788, allocations: 1.378 MB / 420.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004984/0.1793, allocations: 0.5213 MB / 420.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000329/0.1797, allocations: 449.9 kB / 421.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.18, allocations: 0.4897 MB / 421.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.204e-05/0.1801, allocations: 60 kB / 421.8 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.1803, allocations: 104 kB / 421.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.91e-05/0.1804, allocations: 195 kB / 422.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003203/0.1807, allocations: 0.5691 MB / 422.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000677/0.1814, allocations: 1.324 MB / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1814, allocations: 0 / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1814, allocations: 0 / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1814, allocations: 0 / 424 MB, free: 11.72 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001476/0.1829, allocations: 1.297 MB / 425.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.183, allocations: 16.03 kB / 425.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.1831, allocations: 152.2 kB / 425.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004609/0.1835, allocations: 183.2 kB / 425.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007827/0.1843, allocations: 0.7783 MB / 426.4 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.1844, allocations: 77.94 kB / 426.5 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.56e-05/0.1845, allocations: 103.9 kB / 426.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.1857, allocations: 0.9536 MB / 427.6 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.1857, allocations: 3.938 kB / 427.6 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.121e-05/0.1858, allocations: 40 kB / 427.6 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.1858, allocations: 24 kB / 427.6 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009293/0.1867, allocations: 0.6441 MB / 428.3 MB, free: 7.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004104/0.1908, allocations: 4.135 MB / 432.4 MB, free: 2.953 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.1917, allocations: 472.4 kB / 432.9 MB, free: 2.488 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.1919, allocations: 169.5 kB / 433 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.1919, allocations: 4 kB / 433 MB, free: 2.316 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.192, allocations: 38.5 kB / 433.1 MB, free: 2.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.723e-06/0.192, allocations: 0 / 433.1 MB, free: 2.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001716/0.1937, allocations: 1.354 MB / 434.4 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.1937, allocations: 110.8 kB / 434.5 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008313/0.1946, allocations: 0.8781 MB / 435.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.1946, allocations: 29.7 kB / 435.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003599/0.195, allocations: 0.5876 MB / 436 MB, free: 15.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.948e-05/0.1951, allocations: 157.8 kB / 436.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/0.1951, allocations: 20 kB / 436.2 MB, free: 15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1952, allocations: 330 kB / 436.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/0.1955, allocations: 169.9 kB / 436.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004872/0.196, allocations: 497.6 kB / 437.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008135/0.1969, allocations: 0.6906 MB / 437.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.1969, allocations: 4 kB / 437.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001104/0.198, allocations: 0.7508 MB / 438.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.1982, allocations: 405.1 kB / 439 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1982, allocations: 8 kB / 439 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001169/0.1983, allocations: 32.86 kB / 439.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/0.1989, allocations: 175.7 kB / 439.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000809/0.1997, allocations: 1.295 MB / 440.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/0.2002, allocations: 43.89 kB / 440.6 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.2002, allocations: 36 kB / 440.6 MB, free: 10 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.789e-06/0.2002, allocations: 4 kB / 440.6 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008525/0.2011, allocations: 0.6053 MB / 441.2 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2011, allocations: 12.78 kB / 441.2 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.318e-05/0.2012, allocations: 40.84 kB / 441.3 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.2017, allocations: 171.7 kB / 441.4 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007027/0.2024, allocations: 1.288 MB / 442.7 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003892/0.2028, allocations: 39.92 kB / 442.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.2028, allocations: 32 kB / 442.8 MB, free: 7.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.000311/0.2031, allocations: 336.8 kB / 443.1 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.2032, allocations: 90.88 kB / 443.2 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007217/0.204, allocations: 455.5 kB / 443.7 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.204, allocations: 4 kB / 443.7 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.204, allocations: 3.938 kB / 443.7 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.204, allocations: 7.984 kB / 443.7 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.2057, allocations: 1.388 MB / 445.1 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2057, allocations: 0 / 445.1 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.206, allocations: 75.91 kB / 445.1 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-05/0.2061, allocations: 33 kB / 445.2 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.2062, allocations: 12 kB / 445.2 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007051/0.2069, allocations: 1.284 MB / 446.5 MB, free: 3.773 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2069, allocations: 0 / 446.5 MB, free: 3.773 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009501/0.2078, allocations: 0.7357 MB / 447.2 MB, free: 2.996 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.2081, allocations: 204 kB / 447.4 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.241e-05/0.2081, allocations: 8 kB / 447.4 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.2085, allocations: 27.98 kB / 447.4 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.2086, allocations: 27.97 kB / 447.5 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/0.2086, allocations: 15.92 kB / 447.5 MB, free: 2.699 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006807/0.2093, allocations: 0.5937 MB / 448.1 MB, free: 2.094 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2093, allocations: 0 / 448.1 MB, free: 2.094 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008958/0.2102, allocations: 356 kB / 448.4 MB, free: 1.746 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * 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.001248/0.2115, allocations: 1.289 MB / 449.7 MB, free: 412 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.2128, allocations: 0.9829 MB / 450.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2128, allocations: 0 / 450.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003715/0.2132, allocations: 291.1 kB / 451 MB, free: 15.1 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.2145, allocations: 230.8 kB / 451.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007647/0.2221, allocations: 5.603 MB / 456.8 MB, free: 8.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004906/0.2226, allocations: 1.032 MB / 457.8 MB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.2231, allocations: 395.3 kB / 458.2 MB, free: 7.477 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2231, allocations: 0 / 458.2 MB, free: 7.477 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.632/3.855, allocations: 19.46 MB / 477.7 MB, free: 3.984 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches