Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007838/0.0007838, allocations: 82.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.408e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07983/0.07987, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3011/0.381, allocations: 98.25 MB / 468.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.3814, allocations: 89.14 kB / 468.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07175/0.4531, allocations: 27.6 MB / 496.1 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4532, allocations: 0 / 496.1 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.859e-05/0.4533, allocations: 24 kB / 496.1 MB, free: 0.6328 MB / 362.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.001699/0.455, allocations: 1.157 MB / 497.2 MB, free: 15.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.455, allocations: 8.031 kB / 497.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001721/0.4552, allocations: 152.7 kB / 497.4 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005707/0.4558, allocations: 194.3 kB / 497.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.4572, allocations: 0.8477 MB / 498.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/0.4573, allocations: 77.94 kB / 498.5 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.4574, allocations: 96 kB / 498.6 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.4589, allocations: 0.907 MB / 499.5 MB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.4589, allocations: 11.83 kB / 499.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.977e-05/0.459, allocations: 44 kB / 499.6 MB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.459, allocations: 28 kB / 499.6 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009918/0.46, allocations: 0.5819 MB / 0.4885 GB, free: 12.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005002/0.465, allocations: 4.161 MB / 0.4925 GB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007677/0.4658, allocations: 348.9 kB / 0.4928 GB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.4661, allocations: 148.8 kB / 0.493 GB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.4661, allocations: 7.984 kB / 0.493 GB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.4662, allocations: 38.52 kB / 0.493 GB, free: 7.445 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.975e-06/0.4662, allocations: 0 / 0.493 GB, free: 7.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001772/0.4679, allocations: 1.05 MB / 0.4941 GB, free: 6.332 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.468, allocations: 81.11 kB / 0.4941 GB, free: 6.234 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009732/0.469, allocations: 0.7527 MB / 0.4949 GB, free: 5.457 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.469, allocations: 33.7 kB / 0.4949 GB, free: 5.418 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004229/0.4695, allocations: 0.5954 MB / 0.4955 GB, free: 4.812 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.96e-05/0.4696, allocations: 145.9 kB / 0.4956 GB, free: 4.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.4696, allocations: 12 kB / 0.4956 GB, free: 4.656 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4697, allocations: 337.9 kB / 0.496 GB, free: 4.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/0.47, allocations: 145.6 kB / 0.4961 GB, free: 4.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.4704, allocations: 454.7 kB / 0.4965 GB, free: 3.586 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003382/0.4707, allocations: 227.8 kB / 0.4967 GB, free: 3.363 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.4707, allocations: 4 kB / 0.4968 GB, free: 3.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009959/0.4718, allocations: 0.7118 MB / 0.4974 GB, free: 2.637 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001331/0.4731, allocations: 4.095 MB / 0.5014 GB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.4731, allocations: 8 kB / 0.5015 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/0.4733, allocations: 44.78 kB / 0.5015 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/0.4739, allocations: 167.7 kB / 0.5017 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009885/0.4749, allocations: 1.292 MB / 0.5029 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005996/0.4755, allocations: 35.94 kB / 0.503 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.4755, allocations: 36 kB / 0.503 GB, free: 12.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.4756, allocations: 11.28 kB / 0.503 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008812/0.4765, allocations: 0.5907 MB / 0.5036 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4765, allocations: 12.03 kB / 0.5036 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.893e-05/0.4766, allocations: 36.84 kB / 0.5036 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.4771, allocations: 163.8 kB / 0.5038 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008398/0.478, allocations: 1.288 MB / 0.505 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.4785, allocations: 31.94 kB / 0.5051 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.4785, allocations: 36 kB / 0.5051 GB, free: 10.21 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0001411/0.4787, allocations: 160.7 kB / 0.5053 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.4788, allocations: 94.88 kB / 0.5053 GB, free: 9.953 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007061/0.4795, allocations: 399.3 kB / 0.5057 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4795, allocations: 4 kB / 0.5057 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.4796, allocations: 0 / 0.5057 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4796, allocations: 0 / 0.5057 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.4813, allocations: 1.321 MB / 0.507 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4813, allocations: 8 kB / 0.507 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003392/0.4817, allocations: 75.89 kB / 0.5071 GB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.587e-05/0.4817, allocations: 21.08 kB / 0.5071 GB, free: 8.043 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/0.4818, allocations: 19.94 kB / 0.5071 GB, free: 8.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007922/0.4826, allocations: 1.268 MB / 0.5084 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4826, allocations: 0 / 0.5084 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008433/0.4834, allocations: 0.7529 MB / 0.5091 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.4837, allocations: 200 kB / 0.5093 GB, free: 5.566 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.645e-05/0.4838, allocations: 8 kB / 0.5093 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/0.4842, allocations: 27.92 kB / 0.5093 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.4842, allocations: 27.92 kB / 0.5094 GB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.4843, allocations: 12 kB / 0.5094 GB, free: 5.492 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006958/0.485, allocations: 0.5707 MB / 0.5099 GB, free: 4.906 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.485, allocations: 0 / 0.5099 GB, free: 4.906 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001175/0.4861, allocations: 379.9 kB / 0.5103 GB, free: 4.535 MB / 394.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 () * 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.001618/0.4878, allocations: 1.96 MB / 0.5122 GB, free: 2.496 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.4892, allocations: 0.9583 MB / 0.5131 GB, free: 1.512 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4892, allocations: 0 / 0.5131 GB, free: 1.512 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/0.4895, allocations: 264.1 kB / 0.5134 GB, free: 1.242 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/0.4905, allocations: 227.5 kB / 0.5136 GB, free: 1.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.4935, allocations: 1.504 MB / 0.5151 GB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000596/0.4941, allocations: 1.046 MB / 0.5161 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000722/0.4949, allocations: 167.4 kB / 0.5163 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004447/0.4953, allocations: 387.3 kB / 0.5166 GB, free: 13.83 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4953, allocations: 0 / 0.5166 GB, free: 13.83 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.219/0.7143, allocations: 21.94 MB / 0.5381 GB, free: 115.8 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001272/0.7145, allocations: 199.6 kB / 0.5383 GB, free: 115.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.508/3.222, allocations: 1.375 kB / 0.5383 GB, free: 115.6 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat