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.001291/0.001291, allocations: 104.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001098, allocations: 65.67 kB / 306.3 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.09046, allocations: 50.54 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003877/0.09438, allocations: 2.286 MB / 359.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.09632, allocations: 1.22 MB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.09652, allocations: 11.94 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000348/0.09688, allocations: 87.69 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004267/0.09732, allocations: 139.3 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.09761, allocations: 91.84 kB / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003322/0.09795, allocations: 282.8 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.09813, allocations: 81 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.0983, allocations: 103.6 kB / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.09849, allocations: 127.5 kB / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.09854, allocations: 12 kB / 361.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.09869, allocations: 55.91 kB / 361.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-05/0.09878, allocations: 43.84 kB / 361.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.09891, allocations: 111.3 kB / 361.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.09923, allocations: 291.3 kB / 361.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.09925, allocations: 4 kB / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.09925, allocations: 0 / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.09927, allocations: 0 / 361.8 MB, free: 9.254 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.0007714/0.1, allocations: 0.5458 MB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1001, allocations: 11.97 kB / 362.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.015e-05/0.1002, allocations: 58.73 kB / 362.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.1003, allocations: 28.66 kB / 362.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.1006, allocations: 267.4 kB / 362.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1006, allocations: 8.375 kB / 362.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.1007, allocations: 19.94 kB / 362.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.101, allocations: 157.6 kB / 362.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.101, allocations: 4 kB / 362.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.101, allocations: 4 kB / 362.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1011, allocations: 4 kB / 362.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.1013, allocations: 119.7 kB / 363 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008555/0.1022, allocations: 0.5663 MB / 363.6 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.1025, allocations: 162.5 kB / 363.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1026, allocations: 88.81 kB / 363.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.1027, allocations: 4 kB / 363.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.1029, allocations: 115.3 kB / 363.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.964e-06/0.1029, allocations: 0 / 363.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.000465/0.1034, allocations: 232.7 kB / 364.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.1035, allocations: 59.41 kB / 364.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1037, allocations: 261 kB / 364.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.1037, allocations: 29.7 kB / 364.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.438e-05/0.1038, allocations: 144.3 kB / 364.7 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.894e-05/0.1039, allocations: 78.97 kB / 364.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.483e-05/0.1039, allocations: 41.61 kB / 364.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1041, allocations: 338.8 kB / 365.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1042, allocations: 59.91 kB / 365.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.1043, allocations: 84.5 kB / 365.2 MB, free: 5.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.1046, allocations: 142.7 kB / 365.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1046, allocations: 0 / 365.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003396/0.1049, allocations: 209.3 kB / 365.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.1049, allocations: 4 kB / 365.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.105, allocations: 0 / 365.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.105, allocations: 4 kB / 365.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002063/0.1052, allocations: 47.86 kB / 365.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1052, allocations: 0 / 365.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1053, allocations: 27.73 kB / 365.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1054, allocations: 16.09 kB / 365.7 MB, free: 5.113 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.0001352/0.1055, allocations: 154.3 kB / 365.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.1055, allocations: 23.72 kB / 365.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.1056, allocations: 26.19 kB / 365.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1056, allocations: 7.922 kB / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1056, allocations: 0 / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1057, allocations: 0 / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.1059, allocations: 285.5 kB / 366.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1059, allocations: 0 / 366.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.1061, allocations: 35.98 kB / 366.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.1061, allocations: 7.984 kB / 366.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.1061, allocations: 4 kB / 366.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1062, allocations: 7.875 kB / 366.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1062, allocations: 0 / 366.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.1066, allocations: 276.7 kB / 366.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.1067, allocations: 100.8 kB / 366.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.678e-05/0.1067, allocations: 7.938 kB / 366.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/0.1068, allocations: 12.06 kB / 366.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.1069, allocations: 15.94 kB / 366.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.1069, allocations: 4 kB / 366.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001586/0.1071, allocations: 196.5 kB / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1071, allocations: 0 / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.1074, allocations: 63.84 kB / 366.9 MB, free: 3.812 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.001507/0.1089, allocations: 1.138 MB / 368 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.1092, allocations: 143.8 kB / 368.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1092, allocations: 0 / 368.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1093, allocations: 71.92 kB / 368.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.1097, allocations: 52.52 kB / 368.3 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1424/0.2521, allocations: 2.451 MB / 370.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.2523, allocations: 0.7492 MB / 371.5 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.2525, allocations: 27.8 kB / 371.5 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.2526, allocations: 73.91 kB / 371.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2526, allocations: 0 / 371.6 MB, free: 19.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01599/0.2686, allocations: 5.01 MB / 376.6 MB, free: 18.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/0.2688, allocations: 236.8 kB / 376.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.068, allocations: 4.562 kB / 376.8 MB, free: 18.48 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)