Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 202.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.461/1.461, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008726/0.0008726, allocations: 93.06 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.487e-05/2.525e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.09734, allocations: 51.49 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3283/0.4257, allocations: 98.27 MB / 493.6 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.4259, allocations: 84.95 kB / 493.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06734/0.4933, allocations: 25.96 MB / 0.5074 GB, free: 5.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4933, allocations: 0 / 0.5074 GB, free: 5.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.794e-05/0.4934, allocations: 24.66 kB / 0.5074 GB, free: 5.863 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002202/0.4956, allocations: 1.096 MB / 0.5085 GB, free: 4.758 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4957, allocations: 20.02 kB / 0.5085 GB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006789/0.4964, allocations: 170.4 kB / 0.5087 GB, free: 4.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.498, allocations: 0.7651 MB / 0.5094 GB, free: 3.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.498, allocations: 35.98 kB / 0.5095 GB, free: 3.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.4982, allocations: 60 kB / 0.5095 GB, free: 3.672 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001055/0.4992, allocations: 0.5155 MB / 0.51 GB, free: 3.156 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.5006, allocations: 0.7318 MB / 0.5107 GB, free: 2.398 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.875e-05/0.5007, allocations: 15.83 kB / 0.5108 GB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.5008, allocations: 0.75 kB / 0.5108 GB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.5008, allocations: 24 kB / 0.5108 GB, free: 2.359 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005043/0.5058, allocations: 3.76 MB / 0.5145 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004308/0.5063, allocations: 306 kB / 0.5147 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.5065, allocations: 121.4 kB / 0.5149 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.5065, allocations: 288 / 0.5149 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.5066, allocations: 42.78 kB / 0.5149 GB, free: 13.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 1.312e-06/0.5066, allocations: 4 kB / 0.5149 GB, free: 13.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.001582/0.5082, allocations: 0.8789 MB / 0.5158 GB, free: 12.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.5082, allocations: 81.11 kB / 0.5158 GB, free: 12.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000806/0.509, allocations: 0.5779 MB / 0.5164 GB, free: 12.26 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.5091, allocations: 25.7 kB / 0.5164 GB, free: 12.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004038/0.5095, allocations: 0.5716 MB / 0.517 GB, free: 11.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.5096, allocations: 130.1 kB / 0.5171 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.5096, allocations: 4 kB / 0.5171 GB, free: 11.51 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.5098, allocations: 382.8 kB / 0.5175 GB, free: 11.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.51, allocations: 113.6 kB / 0.5176 GB, free: 11.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003872/0.5104, allocations: 412.3 kB / 0.518 GB, free: 10.47 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.5107, allocations: 183.8 kB / 0.5182 GB, free: 10.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.5107, allocations: 4 kB / 0.5182 GB, free: 10.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009226/0.5116, allocations: 0.5666 MB / 0.5187 GB, free: 9.711 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.5117, allocations: 8.156 kB / 0.5187 GB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.5117, allocations: 19.95 kB / 0.5187 GB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001376/0.5118, allocations: 32.86 kB / 0.5188 GB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.5124, allocations: 163.7 kB / 0.5189 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.5134, allocations: 1.251 MB / 0.5202 GB, free: 8.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.5139, allocations: 23.98 kB / 0.5202 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.514, allocations: 32 kB / 0.5202 GB, free: 8.074 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * 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: 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.000116/0.5141, allocations: 128.9 kB / 0.5203 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000474/0.5146, allocations: 309.4 kB / 0.5206 GB, free: 7.629 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.941e-05/0.5147, allocations: 75.06 kB / 0.5207 GB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005207/0.5152, allocations: 305.9 kB / 0.521 GB, free: 7.238 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.5152, allocations: 4 kB / 0.521 GB, free: 7.234 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.5153, allocations: 0 / 0.521 GB, free: 7.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.5153, allocations: 4 kB / 0.521 GB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.5168, allocations: 1.058 MB / 0.522 GB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5168, allocations: 0 / 0.522 GB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.5172, allocations: 83.83 kB / 0.5221 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.147e-05/0.5173, allocations: 20.81 kB / 0.5221 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.5173, allocations: 11.98 kB / 0.5221 GB, free: 5.988 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008051/0.5181, allocations: 1.225 MB / 0.5233 GB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.5182, allocations: 7.969 kB / 0.5233 GB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007569/0.5189, allocations: 0.6311 MB / 0.524 GB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.5192, allocations: 172.2 kB / 0.5241 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.5193, allocations: 7.984 kB / 0.5241 GB, free: 3.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.5197, allocations: 23.98 kB / 0.5242 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.5197, allocations: 23.97 kB / 0.5242 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.5198, allocations: 15.95 kB / 0.5242 GB, free: 3.668 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000622/0.5204, allocations: 443 kB / 0.5246 GB, free: 3.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5204, allocations: 0 / 0.5246 GB, free: 3.242 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008251/0.5213, allocations: 176 kB / 0.5248 GB, free: 3.07 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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.001569/0.5228, allocations: 1.831 MB / 0.5266 GB, free: 1.168 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007502/0.5236, allocations: 439.8 kB / 0.527 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.5236, allocations: 128 / 0.527 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.5239, allocations: 237.8 kB / 0.5272 GB, free: 500 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008331/0.5247, allocations: 174.7 kB / 0.5274 GB, free: 332 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.5275, allocations: 1.35 MB / 0.5287 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.528, allocations: 1.015 MB / 0.5297 GB, free: 13.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.5284, allocations: 94.44 kB / 0.5298 GB, free: 13.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.5288, allocations: 367.3 kB / 0.5301 GB, free: 13.41 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5289, allocations: 0 / 0.5301 GB, free: 13.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03932/0.5682, allocations: 15.01 MB / 0.5448 GB, free: 14.55 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.5684, allocations: 149.2 kB / 0.5449 GB, free: 14.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/3.096, allocations: 4.031 kB / 0.5449 GB, free: 14.35 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat