Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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.001069/0.001069, allocations: 202.7 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.2 MB / 245 MB, free: 7.613 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008315/0.0008314, allocations: 104.2 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.000207, allocations: 12 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.242, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1106/0.3526, allocations: 95.24 MB / 0.4929 GB, free: 11.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.3529, allocations: 88.72 kB / 0.493 GB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2352/0.588, allocations: 23.15 MB / 0.5156 GB, free: 90.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.5881, allocations: 0 / 0.5156 GB, free: 90.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.65e-05/0.5881, allocations: 24.55 kB / 0.5156 GB, free: 90.61 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001573/0.5897, allocations: 1.097 MB / 0.5167 GB, free: 89.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.5898, allocations: 7.375 kB / 0.5167 GB, free: 89.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.5899, allocations: 130.1 kB / 0.5168 GB, free: 89.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004282/0.5903, allocations: 144.9 kB / 0.517 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009956/0.5913, allocations: 0.6875 MB / 0.5176 GB, free: 89.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.367e-05/0.5914, allocations: 56.25 kB / 0.5177 GB, free: 89.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.5915, allocations: 78.41 kB / 0.5178 GB, free: 89.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.5925, allocations: 0.7765 MB / 0.5185 GB, free: 88.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/0.5925, allocations: 3.953 kB / 0.5185 GB, free: 88.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.581e-05/0.5926, allocations: 36.34 kB / 0.5186 GB, free: 88.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.5926, allocations: 23.25 kB / 0.5186 GB, free: 88.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008367/0.5935, allocations: 0.5288 MB / 0.5191 GB, free: 88.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.5967, allocations: 3.465 MB / 0.5225 GB, free: 86.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.5971, allocations: 236 kB / 0.5227 GB, free: 86.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.5971, allocations: 2.594 kB / 0.5227 GB, free: 86.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.441e-05/0.5971, allocations: 34.03 kB / 0.5227 GB, free: 86.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.432e-06/0.5971, allocations: 0 / 0.5227 GB, free: 86.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001604/0.5988, allocations: 1.077 MB / 0.5238 GB, free: 85.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.5988, allocations: 81.22 kB / 0.5239 GB, free: 85.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005814/0.5994, allocations: 0.6222 MB / 0.5245 GB, free: 84.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.5994, allocations: 29.7 kB / 0.5245 GB, free: 84.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.5996, allocations: 0.507 MB / 0.525 GB, free: 84.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.703e-05/0.5997, allocations: 98.25 kB / 0.5251 GB, free: 84.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.611e-05/0.5997, allocations: 11.88 kB / 0.5251 GB, free: 84.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.26e-05/0.5998, allocations: 382.2 kB / 0.5255 GB, free: 84.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.6, allocations: 127.8 kB / 0.5256 GB, free: 83.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.6003, allocations: 423.3 kB / 0.526 GB, free: 83.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.6006, allocations: 207.8 kB / 0.5262 GB, free: 83.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6006, allocations: 3.875 kB / 0.5262 GB, free: 83.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007942/0.6014, allocations: 0.6177 MB / 0.5268 GB, free: 83.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.6015, allocations: 19.58 kB / 0.5268 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/0.6015, allocations: 7.875 kB / 0.5268 GB, free: 83.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.6016, allocations: 36.41 kB / 0.5269 GB, free: 83.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.602, allocations: 142.6 kB / 0.527 GB, free: 82.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006362/0.6027, allocations: 1.303 MB / 0.5283 GB, free: 81.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/0.6031, allocations: 35.98 kB / 0.5283 GB, free: 81.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.6032, allocations: 28 kB / 0.5283 GB, free: 81.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0002945/0.6035, allocations: 233.6 kB / 0.5286 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-05/0.6035, allocations: 79.02 kB / 0.5286 GB, free: 81.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000558/0.6041, allocations: 350.5 kB / 0.529 GB, free: 80.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.6041, allocations: 4 kB / 0.529 GB, free: 80.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.6041, allocations: 4 kB / 0.529 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.6041, allocations: 0 / 0.529 GB, free: 80.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.6054, allocations: 1.092 MB / 0.53 GB, free: 79.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.6054, allocations: 0 / 0.53 GB, free: 79.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.6057, allocations: 64.12 kB / 0.5301 GB, free: 79.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.74e-05/0.6058, allocations: 24.84 kB / 0.5301 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.6058, allocations: 15.89 kB / 0.5301 GB, free: 79.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005621/0.6064, allocations: 1.278 MB / 0.5314 GB, free: 78.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6064, allocations: 4.031 kB / 0.5314 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007245/0.6071, allocations: 0.658 MB / 0.532 GB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.6073, allocations: 172.3 kB / 0.5322 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.6074, allocations: 8 kB / 0.5322 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002975/0.6077, allocations: 15.98 kB / 0.5322 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/0.6078, allocations: 31.91 kB / 0.5323 GB, free: 77.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.6078, allocations: 12.09 kB / 0.5323 GB, free: 77.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004618/0.6082, allocations: 483 kB / 0.5327 GB, free: 76.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6083, allocations: 0 / 0.5327 GB, free: 76.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000726/0.609, allocations: 196 kB / 0.5329 GB, free: 76.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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 (27): * Single equations (assignments): 26 * 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.001272/0.6103, allocations: 1.869 MB / 0.5347 GB, free: 74.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007714/0.611, allocations: 475.4 kB / 0.5352 GB, free: 74.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6111, allocations: 0 / 0.5352 GB, free: 74.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.6114, allocations: 244.6 kB / 0.5354 GB, free: 73.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007535/0.6121, allocations: 176.8 kB / 0.5356 GB, free: 73.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006432/0.6186, allocations: 10.79 MB / 0.5461 GB, free: 62.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.619, allocations: 0.9648 MB / 0.5471 GB, free: 61.56 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003687/0.6194, allocations: 90.02 kB / 0.5472 GB, free: 61.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.6196, allocations: 299.3 kB / 0.5474 GB, free: 61.18 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6197, allocations: 0 / 0.5474 GB, free: 61.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.6494, allocations: 16.74 MB / 0.5638 GB, free: 44.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.6496, allocations: 214.8 kB / 0.564 GB, free: 44.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.262/2.911, allocations: 4.062 kB / 0.564 GB, free: 44.43 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat