Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, 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.379/1.379, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001452/0.001452, allocations: 96.59 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.843e-05/1.851e-05, allocations: 7.984 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3478/0.453, allocations: 99.65 MB / 494.9 MB, free: 9.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.4533, allocations: 76.77 kB / 495 MB, free: 9.531 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0746/0.528, allocations: 28.47 MB / 0.5112 GB, free: 2.082 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.528, allocations: 4 kB / 0.5112 GB, free: 2.078 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.523e-05/0.5281, allocations: 24 kB / 0.5112 GB, free: 2.055 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001871/0.5299, allocations: 1.133 MB / 0.5123 GB, free: 0.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.53, allocations: 8.031 kB / 0.5123 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.5307, allocations: 202.3 kB / 0.5125 GB, free: 0.668 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.5322, allocations: 0.8088 MB / 0.5133 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.5322, allocations: 39.94 kB / 0.5134 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.5323, allocations: 56 kB / 0.5134 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001004/0.5333, allocations: 0.5351 MB / 0.5139 GB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.5347, allocations: 0.7675 MB / 0.5147 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.5348, allocations: 3.906 kB / 0.5147 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.5348, allocations: 0 / 0.5147 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.5349, allocations: 24 kB / 0.5147 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00536/0.5402, allocations: 3.769 MB / 0.5184 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006134/0.5409, allocations: 410.8 kB / 0.5188 GB, free: 9.973 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004892/0.5414, allocations: 238.2 kB / 0.519 GB, free: 9.738 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.5414, allocations: 8 kB / 0.519 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.5415, allocations: 34.56 kB / 0.5191 GB, free: 9.688 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.264e-06/0.5415, allocations: 0 / 0.5191 GB, free: 9.688 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.00211/0.5436, allocations: 1.135 MB / 0.5202 GB, free: 8.496 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.5436, allocations: 85.53 kB / 0.5202 GB, free: 8.395 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007734/0.5444, allocations: 0.5938 MB / 0.5208 GB, free: 7.793 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.5445, allocations: 25.7 kB / 0.5209 GB, free: 7.762 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003807/0.5449, allocations: 0.5719 MB / 0.5214 GB, free: 7.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.545, allocations: 169.6 kB / 0.5216 GB, free: 7.012 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.202e-05/0.545, allocations: 4 kB / 0.5216 GB, free: 7.008 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.5452, allocations: 386.7 kB / 0.5219 GB, free: 6.621 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.5454, allocations: 137.6 kB / 0.5221 GB, free: 6.488 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004442/0.5459, allocations: 432.4 kB / 0.5225 GB, free: 5.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.5462, allocations: 220.6 kB / 0.5227 GB, free: 5.711 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5463, allocations: 4 kB / 0.5227 GB, free: 5.707 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001153/0.5474, allocations: 0.6803 MB / 0.5234 GB, free: 5.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.5474, allocations: 8.531 kB / 0.5234 GB, free: 5.004 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.5475, allocations: 16 kB / 0.5234 GB, free: 4.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002786/0.5478, allocations: 89.67 kB / 0.5235 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/0.5483, allocations: 159.7 kB / 0.5236 GB, free: 4.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/0.5507, allocations: 2.887 MB / 0.5264 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005826/0.5513, allocations: 19.98 kB / 0.5265 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.5514, allocations: 35.2 kB / 0.5265 GB, free: 1.574 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001503/0.5516, allocations: 136.6 kB / 0.5266 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007421/0.5523, allocations: 448.7 kB / 0.5271 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.5524, allocations: 82.97 kB / 0.5271 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008581/0.5533, allocations: 462 kB / 0.5276 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5533, allocations: 4 kB / 0.5276 GB, free: 432 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.5533, allocations: 7.953 kB / 0.5276 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.5533, allocations: 0 / 0.5276 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.5554, allocations: 1.276 MB / 0.5288 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.5554, allocations: 8.219 kB / 0.5288 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.5558, allocations: 75.89 kB / 0.5289 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.556, allocations: 77.67 kB / 0.529 GB, free: 14.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.5561, allocations: 8 kB / 0.529 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/0.5584, allocations: 2.871 MB / 0.5318 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.5584, allocations: 4.031 kB / 0.5318 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.5595, allocations: 0.8325 MB / 0.5326 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/0.5598, allocations: 188.1 kB / 0.5328 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/0.5599, allocations: 7.984 kB / 0.5328 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004082/0.5603, allocations: 23.98 kB / 0.5328 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.5604, allocations: 39.91 kB / 0.5329 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.5605, allocations: 12 kB / 0.5329 GB, free: 10.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005819/0.5611, allocations: 455.2 kB / 0.5333 GB, free: 10.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5611, allocations: 0 / 0.5333 GB, free: 10.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009519/0.562, allocations: 200 kB / 0.5335 GB, free: 9.945 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001995/0.564, allocations: 2.03 MB / 0.5355 GB, free: 7.844 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.5651, allocations: 0.6369 MB / 0.5361 GB, free: 7.188 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5651, allocations: 2 kB / 0.5361 GB, free: 7.188 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005617/0.5657, allocations: 427.5 kB / 0.5365 GB, free: 6.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009024/0.5666, allocations: 178.8 kB / 0.5367 GB, free: 6.578 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.5695, allocations: 1.386 MB / 0.538 GB, free: 5.129 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006599/0.5702, allocations: 1.032 MB / 0.539 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004394/0.5706, allocations: 102.9 kB / 0.5391 GB, free: 3.961 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.5711, allocations: 383.3 kB / 0.5395 GB, free: 3.59 MB / 410.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5711, allocations: 0 / 0.5395 GB, free: 3.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04152/0.6126, allocations: 16.62 MB / 0.5557 GB, free: 3.105 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.6128, allocations: 156.7 kB / 0.5559 GB, free: 2.914 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.456/3.069, allocations: 5.266 kB / 0.5559 GB, free: 2.91 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat