Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_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.00101/0.00101, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008318/0.0008318, allocations: 92.75 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.183e-05, allocations: 7.984 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09409/0.09413, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4376, allocations: 99.42 MB / 494.7 MB, free: 9.766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.4379, allocations: 84.14 kB / 494.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06886/0.5068, allocations: 27.2 MB / 0.5097 GB, free: 3.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5068, allocations: 0 / 0.5097 GB, free: 3.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.272e-05/0.5069, allocations: 27.94 kB / 0.5098 GB, free: 3.562 MB / 378.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.001784/0.5087, allocations: 1.152 MB / 0.5109 GB, free: 2.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.5088, allocations: 12.03 kB / 0.5109 GB, free: 2.355 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005748/0.5094, allocations: 182.3 kB / 0.5111 GB, free: 2.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.5108, allocations: 0.8399 MB / 0.5119 GB, free: 1.293 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.5109, allocations: 32 kB / 0.5119 GB, free: 1.262 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.511, allocations: 63.89 kB / 0.512 GB, free: 1.199 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009387/0.5119, allocations: 0.5233 MB / 0.5125 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.5132, allocations: 0.7702 MB / 0.5133 GB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.073e-05/0.5132, allocations: 7.906 kB / 0.5133 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.5133, allocations: 0 / 0.5133 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.5133, allocations: 28 kB / 0.5133 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004602/0.5179, allocations: 3.966 MB / 0.5172 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007208/0.5187, allocations: 341.5 kB / 0.5175 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001867/0.5189, allocations: 134 kB / 0.5176 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.5189, allocations: 11.97 kB / 0.5176 GB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.519, allocations: 34.56 kB / 0.5177 GB, free: 11.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 1.983e-06/0.519, allocations: 4 kB / 0.5177 GB, free: 11.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001473/0.5204, allocations: 0.9901 MB / 0.5186 GB, free: 10.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.5205, allocations: 81.11 kB / 0.5187 GB, free: 9.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007907/0.5213, allocations: 0.6295 MB / 0.5193 GB, free: 9.344 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.5213, allocations: 25.7 kB / 0.5193 GB, free: 9.312 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.5217, allocations: 0.599 MB / 0.5199 GB, free: 8.703 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.5218, allocations: 145.9 kB / 0.5201 GB, free: 8.559 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.5219, allocations: 7.938 kB / 0.5201 GB, free: 8.551 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.522, allocations: 330 kB / 0.5204 GB, free: 8.223 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.5222, allocations: 133.6 kB / 0.5205 GB, free: 8.094 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.5226, allocations: 438.1 kB / 0.5209 GB, free: 7.516 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.523, allocations: 207.8 kB / 0.5211 GB, free: 7.312 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.523, allocations: 7.984 kB / 0.5211 GB, free: 7.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009039/0.5239, allocations: 0.6273 MB / 0.5218 GB, free: 6.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001377/0.5253, allocations: 4.081 MB / 0.5257 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.5253, allocations: 12 kB / 0.5257 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001583/0.5255, allocations: 32.84 kB / 0.5258 GB, free: 2.219 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005671/0.526, allocations: 175.7 kB / 0.5259 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000908/0.527, allocations: 1.248 MB / 0.5272 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.5275, allocations: 12 kB / 0.5272 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-05/0.5275, allocations: 36 kB / 0.5272 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.5275, allocations: 5.875 kB / 0.5272 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007482/0.5283, allocations: 0.5009 MB / 0.5277 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.5283, allocations: 12 kB / 0.5277 GB, free: 124 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.597e-05/0.5284, allocations: 36.84 kB / 0.5278 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.5289, allocations: 168.4 kB / 0.5279 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007326/0.5297, allocations: 1.24 MB / 0.5291 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000473/0.5302, allocations: 24.05 kB / 0.5291 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.5302, allocations: 36 kB / 0.5292 GB, free: 14.5 MB / 410.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.000153/0.5304, allocations: 128.7 kB / 0.5293 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005422/0.5309, allocations: 349.2 kB / 0.5296 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.5311, allocations: 82.97 kB / 0.5297 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006321/0.5317, allocations: 374.6 kB / 0.5301 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.5317, allocations: 4 kB / 0.5301 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.5317, allocations: 0 / 0.5301 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.5317, allocations: 3.953 kB / 0.5301 GB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.5333, allocations: 1.149 MB / 0.5312 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.5333, allocations: 4 kB / 0.5312 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003496/0.5336, allocations: 79.84 kB / 0.5313 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.648e-05/0.5337, allocations: 24.84 kB / 0.5313 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.5338, allocations: 4 kB / 0.5313 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007546/0.5345, allocations: 1.22 MB / 0.5325 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.5346, allocations: 7.969 kB / 0.5325 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008241/0.5354, allocations: 0.7025 MB / 0.5332 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/0.5356, allocations: 192.1 kB / 0.5334 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.5357, allocations: 0 / 0.5334 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000343/0.5361, allocations: 19.98 kB / 0.5334 GB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.5361, allocations: 27.92 kB / 0.5334 GB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.5362, allocations: 12 kB / 0.5334 GB, free: 9.828 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005838/0.5368, allocations: 483.1 kB / 0.5339 GB, free: 9.359 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5368, allocations: 0 / 0.5339 GB, free: 9.359 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001189/0.538, allocations: 320 kB / 0.5342 GB, free: 9.047 MB / 410.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.001411/0.5394, allocations: 1.894 MB / 0.5361 GB, free: 7.082 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.5407, allocations: 0.8585 MB / 0.5369 GB, free: 6.203 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5407, allocations: 0 / 0.5369 GB, free: 6.203 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.541, allocations: 255.6 kB / 0.5371 GB, free: 5.945 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009659/0.542, allocations: 212.1 kB / 0.5373 GB, free: 5.746 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.5448, allocations: 1.449 MB / 0.5388 GB, free: 4.242 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/0.5454, allocations: 1.041 MB / 0.5398 GB, free: 3.168 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007509/0.5461, allocations: 154.9 kB / 0.5399 GB, free: 3.012 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003982/0.5466, allocations: 375.3 kB / 0.5403 GB, free: 2.645 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.5466, allocations: 8 kB / 0.5403 GB, free: 2.637 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04394/0.5905, allocations: 17.81 MB / 0.5577 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/0.5908, allocations: 171.8 kB / 0.5578 GB, free: 0.7617 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.471/3.062, allocations: 0 / 0.5578 GB, free: 0.7617 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat