Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 196.6 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008918/0.0008919, allocations: 91.52 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.835e-05/3.838e-05, allocations: 4 kB / 350.7 MB, free: 2.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 51.47 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3303/0.4366, allocations: 95.81 MB / 497.9 MB, free: 9.895 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.4368, allocations: 85.94 kB / 498 MB, free: 9.852 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06133/0.4982, allocations: 23.98 MB / 0.5098 GB, free: 3.203 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4982, allocations: 0 / 0.5098 GB, free: 3.203 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.399e-05/0.4983, allocations: 19.98 kB / 0.5098 GB, free: 3.184 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001566/0.4998, allocations: 1.016 MB / 0.5108 GB, free: 2.129 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.4999, allocations: 8.031 kB / 0.5108 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001703/0.5001, allocations: 131.3 kB / 0.5109 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000659/0.5007, allocations: 182.6 kB / 0.5111 GB, free: 1.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.5019, allocations: 0.6718 MB / 0.5117 GB, free: 1.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.502, allocations: 62 kB / 0.5118 GB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.5021, allocations: 87.98 kB / 0.5119 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.5034, allocations: 0.7756 MB / 0.5126 GB, free: 140 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.5035, allocations: 7.906 kB / 0.5127 GB, free: 132 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.5036, allocations: 36 kB / 0.5127 GB, free: 96 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.924e-05/0.5036, allocations: 20 kB / 0.5127 GB, free: 76 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008847/0.5045, allocations: 0.4959 MB / 0.5132 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004286/0.5088, allocations: 3.657 MB / 0.5168 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004535/0.5092, allocations: 219.3 kB / 0.517 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.5094, allocations: 100.8 kB / 0.5171 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.5095, allocations: 3.984 kB / 0.5171 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.5095, allocations: 42.55 kB / 0.5171 GB, free: 11.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 2.254e-06/0.5095, allocations: 0 / 0.5171 GB, free: 11.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001397/0.5109, allocations: 0.8428 MB / 0.5179 GB, free: 10.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.511, allocations: 81.09 kB / 0.518 GB, free: 10.31 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008452/0.5118, allocations: 0.684 MB / 0.5187 GB, free: 9.621 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.5119, allocations: 29.7 kB / 0.5187 GB, free: 9.586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.5122, allocations: 0.4984 MB / 0.5192 GB, free: 9.078 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.533e-05/0.5123, allocations: 106.5 kB / 0.5193 GB, free: 8.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.022e-05/0.5123, allocations: 16 kB / 0.5193 GB, free: 8.957 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.5124, allocations: 326 kB / 0.5196 GB, free: 8.633 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.5126, allocations: 113.6 kB / 0.5197 GB, free: 8.523 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.513, allocations: 405 kB / 0.5201 GB, free: 7.988 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.5133, allocations: 180.3 kB / 0.5203 GB, free: 7.812 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.5133, allocations: 4 kB / 0.5203 GB, free: 7.809 MB / 394.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008567/0.5142, allocations: 0.5921 MB / 0.5209 GB, free: 7.207 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.5142, allocations: 16.19 kB / 0.5209 GB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.5142, allocations: 8 kB / 0.5209 GB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001371/0.5144, allocations: 28.86 kB / 0.5209 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004485/0.5148, allocations: 151.7 kB / 0.5211 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000959/0.5158, allocations: 1.284 MB / 0.5223 GB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004537/0.5163, allocations: 48.03 kB / 0.5224 GB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.5163, allocations: 32 kB / 0.5224 GB, free: 5.508 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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.0001208/0.5165, allocations: 145.6 kB / 0.5225 GB, free: 5.359 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.5166, allocations: 82.97 kB / 0.5226 GB, free: 5.277 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005204/0.5171, allocations: 306.6 kB / 0.5229 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5171, allocations: 0 / 0.5229 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.5171, allocations: 4 kB / 0.5229 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.5171, allocations: 4 kB / 0.5229 GB, free: 4.961 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.5186, allocations: 1.066 MB / 0.524 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.5186, allocations: 0 / 0.524 GB, free: 3.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.5189, allocations: 71.89 kB / 0.524 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.373e-05/0.519, allocations: 24.84 kB / 0.524 GB, free: 3.719 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.519, allocations: 11.94 kB / 0.5241 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008763/0.5199, allocations: 1.275 MB / 0.5253 GB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5199, allocations: 4 kB / 0.5253 GB, free: 2.297 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006958/0.5206, allocations: 0.6116 MB / 0.5259 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.5209, allocations: 184.1 kB / 0.5261 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.947e-05/0.521, allocations: 8 kB / 0.5261 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.5213, allocations: 29.77 kB / 0.5261 GB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.479e-05/0.5214, allocations: 27.92 kB / 0.5261 GB, free: 1.336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.5214, allocations: 11.94 kB / 0.5262 GB, free: 1.324 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007061/0.5221, allocations: 0.5187 MB / 0.5267 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5222, allocations: 0 / 0.5267 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008406/0.523, allocations: 204 kB / 0.5269 GB, free: 0.6094 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * 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.001674/0.5247, allocations: 1.863 MB / 0.5287 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007975/0.5255, allocations: 428.5 kB / 0.5291 GB, free: 14.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.5255, allocations: 6.406 kB / 0.5291 GB, free: 14.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003024/0.5258, allocations: 226.4 kB / 0.5293 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000921/0.5268, allocations: 212.5 kB / 0.5295 GB, free: 13.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.5292, allocations: 1.204 MB / 0.5307 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.5298, allocations: 0.9705 MB / 0.5316 GB, free: 11.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003893/0.5302, allocations: 109.1 kB / 0.5317 GB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/0.5306, allocations: 315.3 kB / 0.532 GB, free: 11.14 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5306, allocations: 0 / 0.532 GB, free: 11.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04091/0.5715, allocations: 19.37 MB / 0.551 GB, free: 8.094 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.5717, allocations: 192.4 kB / 0.5511 GB, free: 7.867 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/3.126, allocations: 4 kB / 0.5511 GB, free: 7.863 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat