Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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.0009299/0.0009299, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001002/0.001003, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.487/1.487, allocations: 223.2 MB / 241.2 MB, free: 5.316 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002659, allocations: 6.281 kB / 300.9 MB, free: 5.594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1109, allocations: 50.42 MB / 351.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01432/0.1253, allocations: 12.29 MB / 363.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.1355, allocations: 4.786 MB / 368.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003544/0.1391, allocations: 55.81 kB / 368.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002715/0.1419, allocations: 0.7225 MB / 369.2 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002428/0.1443, allocations: 444.7 kB / 369.6 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.1454, allocations: 307.6 kB / 369.9 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.1482, allocations: 1.925 MB / 371.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.1495, allocations: 0.7561 MB / 372.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009702/0.1505, allocations: 0.5871 MB / 373.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000723/0.1512, allocations: 0.6802 MB / 373.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.1513, allocations: 92 kB / 374 MB, free: 4.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003236/0.1517, allocations: 128 kB / 374.1 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.1519, allocations: 278.7 kB / 374.4 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.1523, allocations: 364.8 kB / 374.7 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.1541, allocations: 2.181 MB / 376.9 MB, free: 1.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1541, allocations: 3.938 kB / 376.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1541, allocations: 0 / 376.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.754e-05/0.1541, allocations: 0 / 376.9 MB, free: 1.746 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002861/0.157, allocations: 1.755 MB / 378.7 MB, free: 15.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.157, allocations: 12.03 kB / 378.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002316/0.1573, allocations: 215.5 kB / 378.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000635/0.1579, allocations: 245.7 kB / 379.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.1594, allocations: 0.9771 MB / 380.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.308e-05/0.1595, allocations: 114.9 kB / 380.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/0.1596, allocations: 155.9 kB / 380.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.1619, allocations: 1.431 MB / 381.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.162, allocations: 0 / 381.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.1621, allocations: 64 kB / 381.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.1621, allocations: 36 kB / 381.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/0.1638, allocations: 0.9673 MB / 382.9 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007135/0.171, allocations: 6.183 MB / 389 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.172, allocations: 0.6559 MB / 389.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.1724, allocations: 246.1 kB / 389.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.1725, allocations: 4.438 kB / 389.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1725, allocations: 43 kB / 390 MB, free: 4.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 2.635e-06/0.1725, allocations: 0 / 390 MB, free: 4.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.002937/0.1755, allocations: 1.754 MB / 391.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.1755, allocations: 89.55 kB / 391.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.1769, allocations: 1.104 MB / 392.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/0.177, allocations: 37.7 kB / 393 MB, free: 1.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005813/0.1776, allocations: 0.813 MB / 393.8 MB, free: 216 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1777, allocations: 201.2 kB / 394 MB, free: 12 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.1778, allocations: 23.98 kB / 394 MB, free: 15.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.178, allocations: 341.9 kB / 394.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.1784, allocations: 237.9 kB / 394.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007255/0.1791, allocations: 0.6329 MB / 395.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005921/0.1797, allocations: 354 kB / 395.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1797, allocations: 8 kB / 395.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001579/0.1813, allocations: 1.01 MB / 396.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002973/0.1816, allocations: 473.5 kB / 397 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.1817, allocations: 16 kB / 397 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.1818, allocations: 40.86 kB / 397.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/0.1825, allocations: 231.6 kB / 397.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009749/0.1835, allocations: 1.295 MB / 398.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006499/0.1842, allocations: 56.09 kB / 398.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.883e-05/0.1843, allocations: 51.98 kB / 398.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.186e-06/0.1843, allocations: 6.188 kB / 398.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001203/0.1855, allocations: 0.8033 MB / 399.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.1855, allocations: 16 kB / 399.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.704e-05/0.1856, allocations: 44.91 kB / 399.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006476/0.1863, allocations: 219.5 kB / 399.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008176/0.1871, allocations: 1.295 MB / 401.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000521/0.1876, allocations: 39.98 kB / 401.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.756e-05/0.1877, allocations: 44.09 kB / 401.2 MB, free: 8.164 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0006585/0.1884, allocations: 416.7 kB / 401.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.1885, allocations: 114.6 kB / 401.7 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.1895, allocations: 0.5789 MB / 402.3 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1896, allocations: 8 kB / 402.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1896, allocations: 0 / 402.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.1896, allocations: 3.984 kB / 402.3 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.1924, allocations: 1.886 MB / 404.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.1924, allocations: 8 kB / 404.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.1928, allocations: 112.1 kB / 404.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.187e-05/0.1929, allocations: 24.8 kB / 404.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/0.193, allocations: 19.98 kB / 404.3 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008742/0.1939, allocations: 1.268 MB / 405.6 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1939, allocations: 3.938 kB / 405.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.1953, allocations: 0.9422 MB / 406.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.1956, allocations: 243.6 kB / 406.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.1957, allocations: 15.98 kB / 406.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.1962, allocations: 35.98 kB / 406.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.17e-05/0.1963, allocations: 44.33 kB / 406.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.1963, allocations: 20 kB / 406.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.1974, allocations: 0.7477 MB / 407.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1974, allocations: 0 / 407.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001469/0.1989, allocations: 468 kB / 408.1 MB, free: 0.9336 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * 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.001724/0.2006, allocations: 1.517 MB / 409.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002082/0.2027, allocations: 1.258 MB / 410.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.2027, allocations: 8.375 kB / 410.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005325/0.2033, allocations: 357 kB / 411.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.2047, allocations: 270.4 kB / 411.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/0.2166, allocations: 7.532 MB / 419 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008086/0.2175, allocations: 1.173 MB / 420.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000757/0.2182, allocations: 157.1 kB / 420.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006779/0.2189, allocations: 0.554 MB / 420.9 MB, free: 3.523 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.2189, allocations: 0 / 420.9 MB, free: 3.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2546/0.4735, allocations: 23.16 MB / 444.1 MB, free: 56.23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/0.4738, allocations: 240.8 kB / 444.3 MB, free: 55.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.323/2.797, allocations: 0 / 444.3 MB, free: 55.98 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat