Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",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.001174/0.001174, allocations: 95.83 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.001374/0.001373, allocations: 180.8 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.469/1.469, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004304/0.0004305, allocations: 12 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09366, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008638/0.1023, allocations: 7.628 MB / 336.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.1074, allocations: 2.94 MB / 339 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00081/0.1082, allocations: 27.94 kB / 339 MB, free: 9.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.1094, allocations: 497.5 kB / 339.5 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001343/0.1108, allocations: 0.6349 MB / 340.1 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.1114, allocations: 215.7 kB / 340.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.113, allocations: 1.265 MB / 341.6 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000678/0.1137, allocations: 495.4 kB / 342.1 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005674/0.1143, allocations: 0.5176 MB / 342.6 MB, free: 5.738 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006091/0.1149, allocations: 0.5911 MB / 343.2 MB, free: 5.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.115, allocations: 76 kB / 343.3 MB, free: 5.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.1153, allocations: 120 kB / 343.4 MB, free: 4.953 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.1155, allocations: 223 kB / 343.6 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.1157, allocations: 309 kB / 343.9 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.1169, allocations: 1.445 MB / 345.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.1169, allocations: 0 / 345.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1169, allocations: 0 / 345.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.1169, allocations: 0 / 345.4 MB, free: 2.977 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002377/0.1193, allocations: 1.547 MB / 346.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.1194, allocations: 12.03 kB / 346.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.1195, allocations: 168.8 kB / 347.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003919/0.1199, allocations: 182.1 kB / 347.3 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.1211, allocations: 0.7581 MB / 348 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.1212, allocations: 119.8 kB / 348.1 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.1214, allocations: 108 kB / 348.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.123, allocations: 1.135 MB / 349.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/0.1231, allocations: 4 kB / 349.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.761e-05/0.1232, allocations: 51.94 kB / 349.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.1232, allocations: 31.94 kB / 349.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.1247, allocations: 0.7652 MB / 350.2 MB, free: 13.88 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005144/0.1298, allocations: 3.879 MB / 354.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.1313, allocations: 0.6008 MB / 354.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.745e-05/0.1313, allocations: 12.55 kB / 354.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005987/0.132, allocations: 299.1 kB / 355 MB, free: 8.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.195e-06/0.132, allocations: 0 / 355 MB, free: 8.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004188/0.1362, allocations: 2.11 MB / 357.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000199/0.1364, allocations: 475.2 kB / 357.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/0.1376, allocations: 1.012 MB / 358.6 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.1377, allocations: 45.64 kB / 358.6 MB, free: 5.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004648/0.1381, allocations: 0.6427 MB / 359.3 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.1383, allocations: 228.7 kB / 359.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.1383, allocations: 20 kB / 359.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1385, allocations: 341.9 kB / 359.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.139, allocations: 258.5 kB / 360.1 MB, free: 3.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008102/0.1398, allocations: 0.7131 MB / 360.8 MB, free: 2.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006759/0.1405, allocations: 406.3 kB / 361.2 MB, free: 2.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.1405, allocations: 4 kB / 361.2 MB, free: 2.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001926/0.1425, allocations: 1.138 MB / 362.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.1425, allocations: 63.41 kB / 362.4 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.1425, allocations: 12.31 kB / 362.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005668/0.1431, allocations: 176.9 kB / 362.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006832/0.1438, allocations: 211.7 kB / 362.8 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004173/0.148, allocations: 3.595 MB / 366.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.149, allocations: 84.02 kB / 366.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.52e-05/0.1491, allocations: 48 kB / 366.5 MB, free: 12.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.00052/0.1496, allocations: 293.6 kB / 366.8 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.1498, allocations: 126.5 kB / 367 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.1512, allocations: 0.7194 MB / 367.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1513, allocations: 11.94 kB / 367.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.1513, allocations: 0 / 367.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001386/0.1527, allocations: 0.9725 MB / 368.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.1557, allocations: 1.755 MB / 370.4 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1557, allocations: 0 / 370.4 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.1562, allocations: 111.8 kB / 370.5 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000413/0.1566, allocations: 133.8 kB / 370.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.1567, allocations: 15.94 kB / 370.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003344/0.16, allocations: 3.318 MB / 374 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.16, allocations: 3.938 kB / 374 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.162, allocations: 1.157 MB / 375.2 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004612/0.1624, allocations: 243.6 kB / 375.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.1626, allocations: 20 kB / 375.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/0.1632, allocations: 51.86 kB / 375.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.1634, allocations: 52.48 kB / 375.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.834e-05/0.1634, allocations: 23.95 kB / 375.5 MB, free: 2.992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001057/0.1645, allocations: 0.678 MB / 376.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1645, allocations: 0 / 376.2 MB, free: 2.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001136/0.1656, allocations: 307.9 kB / 376.5 MB, free: 2.008 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * 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: 2 * 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: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1702/0.3358, allocations: 2.2 MB / 378.7 MB, free: 50.67 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.3379, allocations: 1.105 MB / 379.8 MB, free: 50.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3379, allocations: 1.375 kB / 379.8 MB, free: 50.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008881/0.3388, allocations: 0.5578 MB / 380.4 MB, free: 50.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3402, allocations: 299 kB / 380.7 MB, free: 50.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005006/0.3452, allocations: 11.34 MB / 392 MB, free: 40.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006081/0.3459, allocations: 1.113 MB / 393.1 MB, free: 39.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005748/0.3464, allocations: 134 kB / 393.3 MB, free: 39.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004383/0.3469, allocations: 465.4 kB / 393.7 MB, free: 39.44 MB / 318.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3469, allocations: 4 kB / 393.7 MB, free: 39.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03867/0.3856, allocations: 25.2 MB / 418.9 MB, free: 22.64 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001213/0.3857, allocations: 227.8 kB / 419.1 MB, free: 22.4 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/2.908, allocations: 0 / 419.1 MB, free: 22.4 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling_res.mat does not exist to compare? outputFormat=mat