Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",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.001546/0.00155, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001156/0.001156, allocations: 90.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003799/0.0003801, allocations: 12 kB / 327.1 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.0974, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003373/0.1008, allocations: 1.776 MB / 376.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.1032, allocations: 0.9018 MB / 377.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.1034, allocations: 4 kB / 377.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004546/0.1039, allocations: 79.69 kB / 377.4 MB, free: 12.56 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005168/0.1044, allocations: 111.7 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.1051, allocations: 103.7 kB / 377.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005178/0.1056, allocations: 199.6 kB / 377.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.1059, allocations: 68.56 kB / 377.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.1062, allocations: 95.69 kB / 378 MB, free: 12 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002825/0.1065, allocations: 95.59 kB / 378.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.1066, allocations: 8 kB / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.1069, allocations: 35.94 kB / 378.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.107, allocations: 55.75 kB / 378.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.1072, allocations: 65.58 kB / 378.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005029/0.1077, allocations: 203.8 kB / 378.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1077, allocations: 0 / 378.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1077, allocations: 0 / 378.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1077, allocations: 0 / 378.4 MB, free: 11.54 MB / 282.7 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.001278/0.109, allocations: 0.5029 MB / 378.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.1091, allocations: 12.03 kB / 378.9 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.1092, allocations: 46.55 kB / 379 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002677/0.1095, allocations: 31.7 kB / 379 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.1101, allocations: 255.4 kB / 379.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.1101, allocations: 8 kB / 379.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.205e-05/0.1102, allocations: 20 kB / 379.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006839/0.1109, allocations: 169.1 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.1109, allocations: 0 / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.111, allocations: 8 kB / 379.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.111, allocations: 4 kB / 379.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005334/0.1116, allocations: 115.9 kB / 379.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.1135, allocations: 0.5587 MB / 380.1 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006168/0.1141, allocations: 162.5 kB / 380.3 MB, free: 9.492 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.508e-05/0.1142, allocations: 11.97 kB / 380.3 MB, free: 9.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005347/0.1148, allocations: 107.7 kB / 380.4 MB, free: 9.363 MB / 282.7 MB Notification: Performance of pre-optimization done (n=20): time 4.238e-06/0.1148, allocations: 0 / 380.4 MB, free: 9.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=20): time 0.001147/0.116, allocations: 241.2 kB / 380.6 MB, free: 9.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.1161, allocations: 55.41 kB / 380.7 MB, free: 9.055 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.1166, allocations: 253 kB / 380.9 MB, free: 8.797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.1167, allocations: 29.7 kB / 381 MB, free: 8.762 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.1169, allocations: 202.8 kB / 381.2 MB, free: 8.562 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.117, allocations: 67.08 kB / 381.2 MB, free: 8.496 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.298e-05/0.1171, allocations: 4 kB / 381.2 MB, free: 8.492 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.1173, allocations: 322.8 kB / 381.6 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.1176, allocations: 47.98 kB / 381.6 MB, free: 8.121 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.1179, allocations: 89.11 kB / 381.7 MB, free: 8.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.1182, allocations: 52.94 kB / 381.7 MB, free: 7.973 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1183, allocations: 0 / 381.7 MB, free: 7.973 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000833/0.1191, allocations: 199.1 kB / 381.9 MB, free: 7.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.1192, allocations: 4 kB / 381.9 MB, free: 7.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.1192, allocations: 7.891 kB / 381.9 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.1192, allocations: 4 kB / 382 MB, free: 7.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/0.1198, allocations: 47.91 kB / 382 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.1198, allocations: 0 / 382 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003209/0.1202, allocations: 27.78 kB / 382 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.1202, allocations: 8 kB / 382 MB, free: 7.676 MB / 282.7 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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003027/0.1206, allocations: 145.8 kB / 382.2 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.913e-05/0.1207, allocations: 23.72 kB / 382.2 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.1208, allocations: 34.17 kB / 382.2 MB, free: 7.465 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.1208, allocations: 3.953 kB / 382.2 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.1209, allocations: 4 kB / 382.2 MB, free: 7.457 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1209, allocations: 0 / 382.2 MB, free: 7.457 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005971/0.1215, allocations: 281.4 kB / 382.5 MB, free: 7.133 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.1215, allocations: 4 kB / 382.5 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.122, allocations: 35.98 kB / 382.6 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.1221, allocations: 0 / 382.6 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.1221, allocations: 4 kB / 382.6 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.385e-05/0.1222, allocations: 7.953 kB / 382.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1222, allocations: 0 / 382.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.1234, allocations: 284.7 kB / 382.8 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.1236, allocations: 92.89 kB / 382.9 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.1237, allocations: 8 kB / 382.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.1239, allocations: 19.95 kB / 383 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.124, allocations: 11.94 kB / 383 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.1241, allocations: 12 kB / 383 MB, free: 6.625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003957/0.1245, allocations: 180.5 kB / 383.2 MB, free: 6.449 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.1245, allocations: 0 / 383.2 MB, free: 6.449 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006715/0.1252, allocations: 55.94 kB / 383.2 MB, free: 6.395 MB / 282.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003357/0.1286, allocations: 1.129 MB / 384.3 MB, free: 5.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007971/0.1295, allocations: 144 kB / 384.5 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.1295, allocations: 0 / 384.5 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.1299, allocations: 80.03 kB / 384.6 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.1305, allocations: 44.77 kB / 384.6 MB, free: 4.988 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.1356, allocations: 1.886 MB / 386.5 MB, free: 3.035 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005844/0.1363, allocations: 0.756 MB / 387.2 MB, free: 2.254 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.1366, allocations: 75.41 kB / 387.3 MB, free: 2.18 MB / 282.7 MB Notification: Performance of SimCode: time 1.563e-06/0.1366, allocations: 3.938 kB / 387.3 MB, free: 2.176 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.1/3.237, allocations: 4.107 MB / 391.4 MB, free: 19.66 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat