Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_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.000854/0.0008539, allocations: 88.08 kB / 16.31 MB, free: 6.449 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.0009582/0.0009582, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.451/1.451, allocations: 223.3 MB / 241.2 MB, free: 5.188 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003157, allocations: 8.375 kB / 300.9 MB, free: 5.945 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1321, allocations: 50.43 MB / 351.3 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01356/0.1457, allocations: 8.476 MB / 359.8 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007744/0.1535, allocations: 2.883 MB / 362.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001597/0.1552, allocations: 27.94 kB / 362.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.1578, allocations: 489.1 kB / 363.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002623/0.1604, allocations: 472.5 kB / 363.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.1615, allocations: 219.7 kB / 363.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003269/0.1648, allocations: 1.583 MB / 365.5 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001384/0.1662, allocations: 0.4915 MB / 366 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.1677, allocations: 0.5563 MB / 366.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.1691, allocations: 0.6261 MB / 367.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.1693, allocations: 84 kB / 367.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005393/0.1699, allocations: 128 kB / 367.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003389/0.1702, allocations: 242.9 kB / 367.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006791/0.1709, allocations: 312.9 kB / 367.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002284/0.1732, allocations: 1.511 MB / 369.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1733, allocations: 0 / 369.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1733, allocations: 0 / 369.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.747e-05/0.1733, allocations: 0 / 369.4 MB, free: 9.211 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.004122/0.1775, allocations: 1.567 MB / 371 MB, free: 7.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.223e-05/0.1775, allocations: 8.031 kB / 371 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003555/0.1779, allocations: 164.8 kB / 371.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000925/0.1789, allocations: 198.1 kB / 371.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.1808, allocations: 0.7893 MB / 372.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.1811, allocations: 115.8 kB / 372.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002346/0.1813, allocations: 111.9 kB / 372.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003006/0.1843, allocations: 1.149 MB / 373.5 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.168e-05/0.1844, allocations: 7.906 kB / 373.5 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.1845, allocations: 44 kB / 373.5 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.696e-05/0.1846, allocations: 28 kB / 373.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.1869, allocations: 0.7652 MB / 374.3 MB, free: 4.055 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.009979/0.1969, allocations: 3.961 MB / 378.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002183/0.1991, allocations: 0.5966 MB / 378.9 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000806/0.2, allocations: 278.9 kB / 379.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.868e-05/0.2, allocations: 12.55 kB / 379.2 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009766/0.201, allocations: 319.4 kB / 379.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 4.097e-06/0.201, allocations: 0 / 379.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.007155/0.2082, allocations: 2.112 MB / 381.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003149/0.2086, allocations: 475.2 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/0.2109, allocations: 1.097 MB / 383.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.452e-05/0.211, allocations: 37.7 kB / 383.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008123/0.2118, allocations: 0.6389 MB / 383.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.2122, allocations: 232.7 kB / 384.1 MB, free: 9.863 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-05/0.2122, allocations: 24 kB / 384.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.2125, allocations: 353.9 kB / 384.4 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008585/0.2134, allocations: 246.5 kB / 384.7 MB, free: 9.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.2148, allocations: 0.7169 MB / 385.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.2159, allocations: 406.4 kB / 385.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.2159, allocations: 4 kB / 385.8 MB, free: 7.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003286/0.2192, allocations: 1.137 MB / 386.9 MB, free: 6.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-05/0.2193, allocations: 63.81 kB / 387 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.2194, allocations: 16 kB / 387 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008257/0.2202, allocations: 165.6 kB / 387.2 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2213, allocations: 211.7 kB / 387.4 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00601/0.2273, allocations: 3.542 MB / 390.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.2291, allocations: 91.92 kB / 391 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.2293, allocations: 44 kB / 391.1 MB, free: 2.348 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.0008374/0.2301, allocations: 297.6 kB / 391.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002826/0.2304, allocations: 126.5 kB / 391.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.2328, allocations: 0.7233 MB / 392.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.2328, allocations: 8 kB / 392.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.2328, allocations: 0 / 392.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002001/0.2348, allocations: 0.9763 MB / 393.2 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00466/0.2395, allocations: 1.81 MB / 395 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.2395, allocations: 0 / 395 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007781/0.2403, allocations: 111.9 kB / 395.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006202/0.241, allocations: 125.8 kB / 395.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.241, allocations: 12 kB / 395.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004843/0.2459, allocations: 3.282 MB / 398.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/0.2459, allocations: 11.88 kB / 398.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003031/0.249, allocations: 1.073 MB / 399.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008621/0.2499, allocations: 247.7 kB / 399.8 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.2501, allocations: 16 kB / 399.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009703/0.2511, allocations: 63.8 kB / 399.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.2513, allocations: 56.44 kB / 400 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.279e-05/0.2514, allocations: 23.98 kB / 400 MB, free: 8.855 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001711/0.2531, allocations: 0.7366 MB / 400.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2531, allocations: 0 / 400.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001952/0.2551, allocations: 304 kB / 401 MB, free: 7.816 MB / 334.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.003287/0.2584, allocations: 1.656 MB / 402.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003142/0.2615, allocations: 1.099 MB / 403.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.2616, allocations: 3.906 kB / 403.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.263, allocations: 0.5568 MB / 404.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/0.2656, allocations: 317 kB / 404.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01858/0.2842, allocations: 7.22 MB / 411.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.2853, allocations: 1.082 MB / 413 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001165/0.2865, allocations: 149.8 kB / 413.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008821/0.2874, allocations: 471.3 kB / 413.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 1.442e-06/0.2874, allocations: 0 / 413.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2783/0.5657, allocations: 26.71 MB / 440.3 MB, free: 57.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002509/0.566, allocations: 237.6 kB / 440.5 MB, free: 57.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.608/3.174, allocations: 0 / 440.5 MB, free: 57.05 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat