Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.001377/0.001377, allocations: 175.2 kB / 14.1 MB, free: 1.211 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.393/1.393, allocations: 205.2 MB / 219.8 MB, free: 14.28 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.0008737/0.0008735, allocations: 86.64 kB / 268 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.413e-05/2.425e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07661/0.07665, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3431/0.4198, allocations: 99.92 MB / 470 MB, free: 9.641 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4201, allocations: 81.45 kB / 470.1 MB, free: 9.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08352/0.5036, allocations: 30.86 MB / 0.4892 GB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5037, allocations: 3.938 kB / 0.4892 GB, free: 11.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.803e-05/0.5038, allocations: 35.98 kB / 0.4893 GB, free: 11.68 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002423/0.5062, allocations: 1.371 MB / 0.4906 GB, free: 10.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.5062, allocations: 8.031 kB / 0.4906 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002161/0.5065, allocations: 160.8 kB / 0.4908 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005974/0.5071, allocations: 198.5 kB / 0.491 GB, free: 9.879 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.5086, allocations: 0.8399 MB / 0.4918 GB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.5088, allocations: 123.8 kB / 0.4919 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/0.509, allocations: 107.9 kB / 0.492 GB, free: 8.762 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/0.5108, allocations: 1.088 MB / 0.4931 GB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.5109, allocations: 0 / 0.4931 GB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-05/0.511, allocations: 48 kB / 0.4931 GB, free: 7.535 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.996e-05/0.511, allocations: 24 kB / 0.4931 GB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.5123, allocations: 0.6952 MB / 0.4938 GB, free: 6.812 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006336/0.5186, allocations: 3.946 MB / 0.4977 GB, free: 2.672 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.52, allocations: 0.5462 MB / 0.4982 GB, free: 2.109 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004135/0.5204, allocations: 244.2 kB / 0.4984 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.799e-05/0.5205, allocations: 4.562 kB / 0.4984 GB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005648/0.5211, allocations: 275.4 kB / 0.4987 GB, free: 1.586 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 6.142e-06/0.5211, allocations: 0 / 0.4987 GB, free: 1.586 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003377/0.5245, allocations: 1.533 MB / 0.5002 GB, free: 15.99 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000233/0.5247, allocations: 483.1 kB / 0.5007 GB, free: 15.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.5261, allocations: 0.921 MB / 0.5016 GB, free: 14.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-05/0.5262, allocations: 41.7 kB / 0.5016 GB, free: 14.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005677/0.5268, allocations: 0.6505 MB / 0.5022 GB, free: 13.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.527, allocations: 232.7 kB / 0.5025 GB, free: 13.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.304e-05/0.527, allocations: 24 kB / 0.5025 GB, free: 13.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.5272, allocations: 341.9 kB / 0.5028 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.5276, allocations: 218.6 kB / 0.503 GB, free: 12.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007763/0.5284, allocations: 0.6781 MB / 0.5037 GB, free: 12.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005905/0.529, allocations: 383.6 kB / 0.504 GB, free: 11.69 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.529, allocations: 4 kB / 0.504 GB, free: 11.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002117/0.5311, allocations: 1.129 MB / 0.5052 GB, free: 10.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.333e-05/0.5312, allocations: 63.41 kB / 0.5052 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.5312, allocations: 12 kB / 0.5052 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006911/0.5319, allocations: 193.7 kB / 0.5054 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007125/0.5327, allocations: 219.6 kB / 0.5056 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004005/0.5367, allocations: 3.53 MB / 0.5091 GB, free: 6.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.5379, allocations: 76.03 kB / 0.5091 GB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.632e-05/0.5379, allocations: 47.98 kB / 0.5092 GB, free: 6.121 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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%) 1,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000231/0.5382, allocations: 184.7 kB / 0.5094 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.5383, allocations: 126.5 kB / 0.5095 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.5399, allocations: 0.6881 MB / 0.5102 GB, free: 5.102 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.54, allocations: 8 kB / 0.5102 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.54, allocations: 7.953 kB / 0.5102 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001219/0.5412, allocations: 0.9256 MB / 0.5111 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003087/0.5443, allocations: 1.774 MB / 0.5128 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.5443, allocations: 4 kB / 0.5128 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/0.5448, allocations: 111.8 kB / 0.5129 GB, free: 2.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004407/0.5453, allocations: 137.8 kB / 0.513 GB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.5454, allocations: 19.98 kB / 0.5131 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003016/0.5484, allocations: 3.255 MB / 0.5162 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.5484, allocations: 11.97 kB / 0.5163 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.5501, allocations: 1.118 MB / 0.5173 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005081/0.5506, allocations: 251.6 kB / 0.5176 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.5508, allocations: 20 kB / 0.5176 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005488/0.5513, allocations: 43.97 kB / 0.5176 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.5515, allocations: 60.47 kB / 0.5177 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.5515, allocations: 23.95 kB / 0.5177 GB, free: 12.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001012/0.5525, allocations: 0.6991 MB / 0.5184 GB, free: 12.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5525, allocations: 0 / 0.5184 GB, free: 12.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001323/0.5539, allocations: 360.1 kB / 0.5188 GB, free: 11.71 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.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002695/0.5566, allocations: 2.384 MB / 0.5211 GB, free: 9.246 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.5587, allocations: 1.045 MB / 0.5221 GB, free: 8.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5587, allocations: 0 / 0.5221 GB, free: 8.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000813/0.5595, allocations: 0.5216 MB / 0.5226 GB, free: 7.613 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.5609, allocations: 305.6 kB / 0.5229 GB, free: 7.316 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00378/0.5647, allocations: 1.812 MB / 0.5247 GB, free: 5.441 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007163/0.5654, allocations: 1.113 MB / 0.5258 GB, free: 4.297 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006432/0.5661, allocations: 145.8 kB / 0.5259 GB, free: 4.152 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006/0.5667, allocations: 467.3 kB / 0.5263 GB, free: 3.695 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5667, allocations: 4 kB / 0.5263 GB, free: 3.691 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2365/0.8032, allocations: 29.79 MB / 0.5554 GB, free: 110.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/0.8033, allocations: 217.3 kB / 0.5556 GB, free: 110.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.009/3.812, allocations: 0 / 0.5556 GB, free: 110.3 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat