Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001208/0.001208, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.48 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.101, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003766/0.1048, allocations: 2.294 MB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002007/0.1068, allocations: 1.212 MB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.1071, allocations: 0 / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.1075, allocations: 87.69 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005019/0.108, allocations: 147.3 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1083, allocations: 95.78 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.1087, allocations: 294.8 kB / 361.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.109, allocations: 88.56 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.1091, allocations: 115.6 kB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.1093, allocations: 131.5 kB / 361.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.1094, allocations: 20 kB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.1095, allocations: 47.98 kB / 361.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.1096, allocations: 55.83 kB / 361.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1097, allocations: 135.2 kB / 361.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003557/0.1101, allocations: 283.4 kB / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1101, allocations: 0 / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1101, allocations: 0 / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1101, allocations: 0 / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0007544/0.1109, allocations: 0.5522 MB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.1109, allocations: 8.031 kB / 362.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.257e-05/0.111, allocations: 50.73 kB / 362.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.1111, allocations: 36.64 kB / 362.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.1114, allocations: 263.4 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1115, allocations: 12.31 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.1115, allocations: 23.92 kB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.1118, allocations: 161.5 kB / 363.2 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1118, allocations: 4 kB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.1119, allocations: 4 kB / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.1119, allocations: 4 kB / 363.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.1121, allocations: 119.7 kB / 363.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008532/0.113, allocations: 0.5585 MB / 363.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.1133, allocations: 162.5 kB / 364 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.1134, allocations: 92.81 kB / 364.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.1135, allocations: 7.984 kB / 364.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002746/0.1137, allocations: 119.3 kB / 364.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.633e-06/0.1138, allocations: 0 / 364.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.000459/0.1142, allocations: 235.8 kB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.1143, allocations: 55.41 kB / 364.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.1145, allocations: 257 kB / 364.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.1145, allocations: 29.7 kB / 364.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.1146, allocations: 144.3 kB / 364.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.849e-05/0.1147, allocations: 79.03 kB / 365 MB, free: 6.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/0.1148, allocations: 45.61 kB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1149, allocations: 338.8 kB / 365.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.115, allocations: 47.98 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.1151, allocations: 88.42 kB / 365.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.1154, allocations: 154.7 kB / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1154, allocations: 0 / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003195/0.1157, allocations: 205.3 kB / 365.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1157, allocations: 4 kB / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1157, allocations: 0 / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1158, allocations: 4.094 kB / 365.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.116, allocations: 51.91 kB / 365.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.116, allocations: 3.938 kB / 365.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.1161, allocations: 27.75 kB / 365.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.1161, allocations: 4 kB / 365.9 MB, free: 5.164 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.1163, allocations: 146.4 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.788e-05/0.1163, allocations: 27.7 kB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.968e-05/0.1164, allocations: 30.17 kB / 366.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1164, allocations: 7.938 kB / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1164, allocations: 0 / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1164, allocations: 0 / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.1167, allocations: 293.4 kB / 366.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1167, allocations: 0 / 366.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.1169, allocations: 35.92 kB / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1169, allocations: 3.938 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.1169, allocations: 8 kB / 366.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.1169, allocations: 3.938 kB / 366.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1169, allocations: 0 / 366.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004489/0.1174, allocations: 288.7 kB / 366.8 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.1174, allocations: 96.86 kB / 366.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.1175, allocations: 7.938 kB / 366.9 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.229e-05/0.1176, allocations: 7.984 kB / 366.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.217e-05/0.1176, allocations: 15.98 kB / 366.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.1177, allocations: 4 kB / 366.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.1178, allocations: 200.5 kB / 367.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1178, allocations: 0 / 367.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.1181, allocations: 55.84 kB / 367.2 MB, free: 3.859 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001503/0.1196, allocations: 1.123 MB / 368.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.12, allocations: 155.8 kB / 368.4 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.12, allocations: 0 / 368.4 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.1201, allocations: 75.91 kB / 368.5 MB, free: 2.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.1204, allocations: 51.72 kB / 368.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002989/0.1234, allocations: 2.47 MB / 371 MB, free: 20 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1722/0.2957, allocations: 0.7395 MB / 371.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000214/0.2959, allocations: 27.28 kB / 371.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.2961, allocations: 74.83 kB / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2961, allocations: 0 / 371.9 MB, free: 19.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/0.3169, allocations: 5.135 MB / 377 MB, free: 19.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.3171, allocations: 242.7 kB / 377.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.12, allocations: 1.594 kB / 377.2 MB, free: 18.92 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)