Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 112.3 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 50.38 kB / 300.2 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09879/0.09988, allocations: 49.44 MB / 349.7 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004146/0.1041, allocations: 2.277 MB / 352 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.106, allocations: 1.056 MB / 353 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.1062, allocations: 3.938 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004163/0.1067, allocations: 83.75 kB / 353.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004083/0.1071, allocations: 115.4 kB / 353.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004418/0.1076, allocations: 123.7 kB / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003861/0.108, allocations: 286.8 kB / 353.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.1082, allocations: 88.56 kB / 353.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.1084, allocations: 107.6 kB / 353.8 MB, free: 412 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000201/0.1086, allocations: 127.5 kB / 353.9 MB, free: 284 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.1087, allocations: 20 kB / 354 MB, free: 264 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.1088, allocations: 55.97 kB / 354 MB, free: 208 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.183e-05/0.1089, allocations: 51.83 kB / 354.1 MB, free: 156 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.1091, allocations: 127.2 kB / 354.2 MB, free: 28 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004281/0.1095, allocations: 279.4 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1095, allocations: 0 / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1095, allocations: 0 / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1095, allocations: 0 / 354.5 MB, free: 15.75 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.0008983/0.1104, allocations: 0.5482 MB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1105, allocations: 8.031 kB / 355 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.912e-05/0.1106, allocations: 54.73 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.1107, allocations: 32.56 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.111, allocations: 252.7 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1111, allocations: 16.38 kB / 355.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.071e-05/0.1111, allocations: 27.88 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.1115, allocations: 161.3 kB / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1115, allocations: 0 / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.1115, allocations: 12 kB / 355.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1115, allocations: 4 kB / 355.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002474/0.1118, allocations: 111.9 kB / 355.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008789/0.1127, allocations: 0.57 MB / 356.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.113, allocations: 165.9 kB / 356.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1132, allocations: 92.2 kB / 356.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.1132, allocations: 7.984 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003258/0.1136, allocations: 107.4 kB / 356.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.973e-06/0.1136, allocations: 0 / 356.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005078/0.1141, allocations: 236.8 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.1141, allocations: 55.41 kB / 356.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.1144, allocations: 249 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1144, allocations: 37.7 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.843e-05/0.1145, allocations: 140.3 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.1146, allocations: 75.02 kB / 357.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.691e-05/0.1147, allocations: 41.7 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1148, allocations: 334.8 kB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.115, allocations: 51.97 kB / 357.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.1151, allocations: 79.41 kB / 357.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.1153, allocations: 151.3 kB / 358 MB, free: 11.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1154, allocations: 4 kB / 358 MB, free: 11.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003486/0.1157, allocations: 206.7 kB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1157, allocations: 4 kB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1157, allocations: 4.094 kB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1158, allocations: 4 kB / 358.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.116, allocations: 43.92 kB / 358.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.116, allocations: 3.984 kB / 358.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.1161, allocations: 31.62 kB / 358.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.1161, allocations: 11.94 kB / 358.3 MB, free: 11.63 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.000142/0.1163, allocations: 145 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.1163, allocations: 23.81 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.375e-05/0.1164, allocations: 26.17 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.1164, allocations: 7.938 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1164, allocations: 0 / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1164, allocations: 0 / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002736/0.1167, allocations: 281.4 kB / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1167, allocations: 4 kB / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.1169, allocations: 43.91 kB / 358.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.1169, allocations: 0 / 358.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.117, allocations: 4 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.117, allocations: 7.938 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.117, allocations: 4 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.1175, allocations: 280.7 kB / 359.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.02e-05/0.1176, allocations: 100.8 kB / 359.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.1176, allocations: 7.938 kB / 359.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.156e-05/0.1177, allocations: 8 kB / 359.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.1177, allocations: 7.984 kB / 359.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.1178, allocations: 16.05 kB / 359.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.1179, allocations: 188.5 kB / 359.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.118, allocations: 0 / 359.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002746/0.1182, allocations: 51.94 kB / 359.5 MB, free: 10.36 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.001513/0.1198, allocations: 1.131 MB / 360.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00033/0.1201, allocations: 160.3 kB / 360.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1201, allocations: 0 / 360.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.1202, allocations: 75.86 kB / 360.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.1206, allocations: 40.64 kB / 360.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002883/0.1235, allocations: 2.435 MB / 363.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.1238, allocations: 0.744 MB / 364.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.1239, allocations: 33.92 kB / 364.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.1241, allocations: 71.41 kB / 364.2 MB, free: 5.684 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1241, allocations: 4 kB / 364.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.1409, allocations: 5.06 MB / 369.3 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.1411, allocations: 241.2 kB / 369.5 MB, free: 500 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.008, allocations: 0 / 369.5 MB, free: 500 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)