Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_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.001036/0.001035, allocations: 98.3 kB / 16.94 MB, free: 5.977 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.00114/0.00114, allocations: 180.2 kB / 17.82 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005069/0.000507, allocations: 11.28 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1061, allocations: 47.57 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01413/0.1203, allocations: 11.35 MB / 339.8 MB, free: 8.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.131, allocations: 4.999 MB / 344.8 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003237/0.1343, allocations: 55.75 kB / 344.8 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.1371, allocations: 0.8238 MB / 345.6 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003102/0.1403, allocations: 0.849 MB / 346.5 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.1421, allocations: 0.511 MB / 347 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003381/0.1455, allocations: 1.457 MB / 348.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.1467, allocations: 0.76 MB / 349.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009079/0.1476, allocations: 0.5756 MB / 349.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007557/0.1483, allocations: 0.6725 MB / 350.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.1485, allocations: 88 kB / 350.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003552/0.1489, allocations: 132 kB / 350.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002162/0.1491, allocations: 282.8 kB / 351 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.1494, allocations: 356.8 kB / 351.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002163/0.1516, allocations: 2.162 MB / 353.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1516, allocations: 0 / 353.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.531e-06/0.1516, allocations: 3.984 kB / 353.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.818e-05/0.1516, allocations: 0 / 353.5 MB, free: 10.82 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.003264/0.1549, allocations: 1.747 MB / 355.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1549, allocations: 8.031 kB / 355.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002685/0.1552, allocations: 219.5 kB / 355.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006772/0.1559, allocations: 245.6 kB / 355.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.1576, allocations: 1.004 MB / 356.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.38e-05/0.1577, allocations: 111 kB / 356.8 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.1579, allocations: 155.9 kB / 357 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002442/0.1603, allocations: 1.415 MB / 358.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.1604, allocations: 4 kB / 358.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.1605, allocations: 64 kB / 358.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.174e-05/0.1606, allocations: 36 kB / 358.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.1624, allocations: 0.9672 MB / 359.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008341/0.1708, allocations: 6.164 MB / 365.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.1719, allocations: 0.6599 MB / 366.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.106e-05/0.172, allocations: 4.438 kB / 366.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.1721, allocations: 46.94 kB / 366.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 2.936e-06/0.1721, allocations: 0 / 366.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.003318/0.1754, allocations: 1.754 MB / 368.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.1755, allocations: 89.55 kB / 368.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.177, allocations: 1.1 MB / 369.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/0.1771, allocations: 37.7 kB / 369.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00068/0.1777, allocations: 0.8091 MB / 370.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.1779, allocations: 205.2 kB / 370.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.178, allocations: 20 kB / 370.3 MB, free: 9.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1781, allocations: 341.9 kB / 370.7 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/0.1786, allocations: 245.8 kB / 370.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007469/0.1794, allocations: 0.6251 MB / 371.5 MB, free: 7.938 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005961/0.18, allocations: 346 kB / 371.9 MB, free: 7.598 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.18, allocations: 4 kB / 371.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001774/0.1818, allocations: 1.006 MB / 372.9 MB, free: 6.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002343/0.1841, allocations: 5.145 MB / 378 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/0.1842, allocations: 16 kB / 378 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000211/0.1844, allocations: 44.84 kB / 378.1 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007708/0.1852, allocations: 231.6 kB / 378.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2008/0.3859, allocations: 1.287 MB / 379.6 MB, free: 33.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3871, allocations: 56.25 kB / 379.6 MB, free: 33.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.3871, allocations: 50.12 kB / 379.7 MB, free: 33.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.3872, allocations: 4.125 kB / 379.7 MB, free: 33.71 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001369/0.3885, allocations: 0.8089 MB / 380.5 MB, free: 33.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.3886, allocations: 16.95 kB / 380.5 MB, free: 33.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001094/0.3887, allocations: 45.28 kB / 380.6 MB, free: 33.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007009/0.3894, allocations: 220 kB / 380.8 MB, free: 33.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007503/0.3902, allocations: 1.298 MB / 382.1 MB, free: 32.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007725/0.3909, allocations: 37.86 kB / 382.1 MB, free: 32.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.391, allocations: 45.89 kB / 382.2 MB, free: 32.45 MB / 318.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.0007136/0.3918, allocations: 421 kB / 382.6 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.3919, allocations: 117.4 kB / 382.7 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.393, allocations: 0.5736 MB / 383.3 MB, free: 32.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.393, allocations: 5.297 kB / 383.3 MB, free: 32.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.3931, allocations: 1.969 kB / 383.3 MB, free: 32.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3931, allocations: 6.328 kB / 383.3 MB, free: 32.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002758/0.3958, allocations: 1.872 MB / 385.1 MB, free: 31.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3959, allocations: 4.969 kB / 385.1 MB, free: 31.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/0.3963, allocations: 111 kB / 385.3 MB, free: 31.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/0.3964, allocations: 26 kB / 385.3 MB, free: 31.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.745e-05/0.3965, allocations: 19.89 kB / 385.3 MB, free: 31.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000686/0.3972, allocations: 1.277 MB / 386.6 MB, free: 30.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.3972, allocations: 4.562 kB / 386.6 MB, free: 30.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.3987, allocations: 1.024 MB / 387.6 MB, free: 30.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003503/0.399, allocations: 243.3 kB / 387.8 MB, free: 30.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3992, allocations: 12.42 kB / 387.9 MB, free: 30.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004817/0.3997, allocations: 46.16 kB / 387.9 MB, free: 30.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.307e-05/0.3998, allocations: 40.36 kB / 387.9 MB, free: 30.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.3998, allocations: 19.08 kB / 388 MB, free: 30.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.4009, allocations: 0.7365 MB / 388.7 MB, free: 30.03 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4009, allocations: 1.281 kB / 388.7 MB, free: 30.03 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001739/0.4027, allocations: 469.2 kB / 389.1 MB, free: 30.03 MB / 318.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.001996/0.4047, allocations: 2.078 MB / 391.2 MB, free: 28.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.4069, allocations: 1.251 MB / 392.5 MB, free: 28.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4069, allocations: 0 / 392.5 MB, free: 28.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005154/0.4075, allocations: 361.3 kB / 392.8 MB, free: 28.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.4087, allocations: 256 kB / 393.1 MB, free: 28.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.4219, allocations: 16.21 MB / 409.3 MB, free: 16.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006192/0.4226, allocations: 1.206 MB / 410.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007674/0.4233, allocations: 148.8 kB / 410.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005385/0.4239, allocations: 0.5608 MB / 411.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4239, allocations: 0 / 411.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0393/0.4632, allocations: 23.07 MB / 434.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002345/0.4635, allocations: 237.8 kB / 434.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/2.63, allocations: 0 / 434.5 MB, free: 11.66 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat