Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 96 kB / 16.93 MB, free: 5.984 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.001222/0.001222, allocations: 177 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004309/0.0004309, allocations: 11.28 kB / 280.9 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1018, allocations: 47.57 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.007255/0.1091, allocations: 6.326 MB / 334.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004664/0.1138, allocations: 2.492 MB / 337.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006159/0.1145, allocations: 20 kB / 337.3 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001229/0.1157, allocations: 441.8 kB / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.1168, allocations: 466.7 kB / 338.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.1172, allocations: 147.7 kB / 338.3 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.1183, allocations: 0.8936 MB / 339.2 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004919/0.1188, allocations: 392.1 kB / 339.6 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003486/0.1192, allocations: 362.5 kB / 339.9 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000412/0.1196, allocations: 406.1 kB / 340.3 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.375e-05/0.1197, allocations: 51.94 kB / 340.4 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.1199, allocations: 91.97 kB / 340.5 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.12, allocations: 155.4 kB / 340.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000162/0.1202, allocations: 229.1 kB / 340.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008739/0.1211, allocations: 1.09 MB / 341.9 MB, free: 6.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1211, allocations: 0 / 341.9 MB, free: 6.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1211, allocations: 0 / 341.9 MB, free: 6.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.1211, allocations: 0 / 341.9 MB, free: 6.43 MB / 286.1 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.001686/0.1228, allocations: 1.145 MB / 343.1 MB, free: 5.234 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1229, allocations: 8.031 kB / 343.1 MB, free: 5.227 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000139/0.123, allocations: 135.3 kB / 343.2 MB, free: 5.086 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003286/0.1233, allocations: 134.7 kB / 343.3 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000848/0.1242, allocations: 0.6095 MB / 344 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.1243, allocations: 62 kB / 344 MB, free: 4.238 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.1244, allocations: 91.92 kB / 344.1 MB, free: 4.148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.1257, allocations: 0.8067 MB / 344.9 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.955e-05/0.1257, allocations: 11.84 kB / 344.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.1258, allocations: 36 kB / 345 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.1258, allocations: 20 kB / 345 MB, free: 3.242 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009853/0.1268, allocations: 0.5504 MB / 345.5 MB, free: 2.695 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004066/0.1309, allocations: 3.551 MB / 349.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005018/0.1314, allocations: 246.3 kB / 349.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.1314, allocations: 4 kB / 349.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.1315, allocations: 38.56 kB / 349.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.114e-06/0.1315, allocations: 3.938 kB / 349.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002072/0.1336, allocations: 1.106 MB / 350.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.1336, allocations: 81.11 kB / 350.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000776/0.1344, allocations: 0.7077 MB / 351.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1344, allocations: 33.7 kB / 351.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/0.1348, allocations: 0.5058 MB / 351.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.785e-05/0.1348, allocations: 106.5 kB / 351.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.1349, allocations: 16 kB / 351.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1351, allocations: 382.8 kB / 352.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.1353, allocations: 133.2 kB / 352.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/0.1358, allocations: 446.2 kB / 352.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.1362, allocations: 216.1 kB / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1362, allocations: 4 kB / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001006/0.1372, allocations: 0.6616 MB / 353.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1372, allocations: 8 kB / 353.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1372, allocations: 12 kB / 353.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001433/0.1374, allocations: 36.84 kB / 353.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.1378, allocations: 151.7 kB / 353.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.1389, allocations: 1.296 MB / 355.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004523/0.1393, allocations: 48.14 kB / 355.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.1394, allocations: 32 kB / 355.3 MB, free: 8.238 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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.0003416/0.1397, allocations: 241.5 kB / 355.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.1399, allocations: 75.06 kB / 355.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006844/0.1405, allocations: 349.9 kB / 356 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.1406, allocations: 4 kB / 356 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.1406, allocations: 0 / 356 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.1406, allocations: 11.92 kB / 356 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.1423, allocations: 1.101 MB / 357.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1423, allocations: 0 / 357.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.1426, allocations: 72.17 kB / 357.1 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.208e-05/0.1427, allocations: 28.75 kB / 357.2 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.1427, allocations: 8 kB / 357.2 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009125/0.1436, allocations: 1.28 MB / 358.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1436, allocations: 0 / 358.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009259/0.1446, allocations: 0.6858 MB / 359.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.1448, allocations: 160.3 kB / 359.3 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.517e-05/0.1448, allocations: 8 kB / 359.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.1451, allocations: 23.98 kB / 359.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.1452, allocations: 31.92 kB / 359.4 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.1452, allocations: 12 kB / 359.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005536/0.1458, allocations: 483 kB / 359.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1458, allocations: 0 / 359.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.1465, allocations: 167.9 kB / 360 MB, free: 3.191 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.001455/0.148, allocations: 1.704 MB / 361.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008342/0.1488, allocations: 491.9 kB / 362.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1488, allocations: 0 / 362.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003599/0.1492, allocations: 255.8 kB / 362.4 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.15, allocations: 167.4 kB / 362.6 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009464/0.1595, allocations: 11.47 MB / 374.1 MB, free: 4.727 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005854/0.1602, allocations: 0.976 MB / 375.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004386/0.1606, allocations: 98 kB / 375.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003653/0.161, allocations: 315.3 kB / 375.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of SimCode: time 1.183e-06/0.161, allocations: 0 / 375.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2035/0.3645, allocations: 14.11 MB / 389.6 MB, free: 49.76 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/0.3647, allocations: 221.7 kB / 389.8 MB, free: 49.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.336, allocations: 4.906 kB / 389.8 MB, free: 49.51 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat