Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.00106/0.00106, allocations: 88.39 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.001195/0.001195, allocations: 183.1 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.403/1.403, allocations: 223.3 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.0003161, allocations: 7.391 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1297, allocations: 50.42 MB / 351.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01191/0.1416, allocations: 9.639 MB / 361 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009027/0.1507, allocations: 3.397 MB / 364.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002672/0.1534, allocations: 59.75 kB / 364.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002762/0.1562, allocations: 0.6445 MB / 365.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004243/0.1605, allocations: 0.7302 MB / 365.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.1622, allocations: 295.5 kB / 366.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005613/0.1678, allocations: 2.954 MB / 369.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004155/0.172, allocations: 1.848 MB / 370.9 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0026/0.1746, allocations: 1.015 MB / 371.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003422/0.178, allocations: 1.401 MB / 373.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.1791, allocations: 152 kB / 373.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001641/0.1807, allocations: 227.9 kB / 373.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001343/0.1821, allocations: 0.806 MB / 374.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.1832, allocations: 0.5666 MB / 375.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004648/0.1879, allocations: 3.923 MB / 379 MB, free: 15.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.1879, allocations: 0 / 379 MB, free: 15.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1879, allocations: 0 / 379 MB, free: 15.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001799/0.1881, allocations: 0 / 379 MB, free: 15.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007441/0.1956, allocations: 2.884 MB / 381.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.185e-05/0.1957, allocations: 12.03 kB / 381.9 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001212/0.1969, allocations: 370.7 kB / 382.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.1982, allocations: 332.1 kB / 382.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003513/0.2017, allocations: 1.713 MB / 384.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/0.2019, allocations: 205 kB / 384.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003437/0.2022, allocations: 244 kB / 384.7 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006363/0.2086, allocations: 3.264 MB / 388 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.361e-05/0.2087, allocations: 11.84 kB / 388 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.209, allocations: 104 kB / 388.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/0.2091, allocations: 128.9 kB / 388.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005029/0.2141, allocations: 2.736 MB / 391 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.2303, allocations: 10.51 MB / 401.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.2322, allocations: 1.35 MB / 402.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.2334, allocations: 0.7901 MB / 403.6 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/0.2338, allocations: 211.1 kB / 403.8 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.2338, allocations: 47.56 kB / 403.9 MB, free: 6.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.835e-06/0.2338, allocations: 0 / 403.9 MB, free: 6.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01458/0.2484, allocations: 6.937 MB / 410.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.2485, allocations: 64.41 kB / 410.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/0.2513, allocations: 1.774 MB / 412.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/0.2515, allocations: 53.64 kB / 412.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.2525, allocations: 1.264 MB / 414 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.253, allocations: 437.8 kB / 414.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.467e-05/0.2531, allocations: 32 kB / 414.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.2533, allocations: 369.9 kB / 414.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.2545, allocations: 0.773 MB / 415.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.256, allocations: 1.292 MB / 416.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.2575, allocations: 0.9745 MB / 417.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.2575, allocations: 8 kB / 417.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004118/0.2616, allocations: 2.463 MB / 420.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.587e-05/0.2617, allocations: 13.72 kB / 420.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.044e-05/0.2617, allocations: 23.97 kB / 420.3 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006277/0.2624, allocations: 239.2 kB / 420.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.2638, allocations: 419.4 kB / 421 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002475/0.2663, allocations: 3.002 MB / 424 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.2678, allocations: 127.8 kB / 424.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.268, allocations: 71.98 kB / 424.2 MB, free: 1.238 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001593/0.2696, allocations: 0.8173 MB / 425 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004409/0.27, allocations: 189.6 kB / 425.2 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2249/0.4949, allocations: 2.036 MB / 427.2 MB, free: 62.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.495, allocations: 11.22 kB / 427.2 MB, free: 62.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.495, allocations: 2.688 kB / 427.2 MB, free: 62.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.495, allocations: 6.938 kB / 427.2 MB, free: 62.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/0.5056, allocations: 4.758 MB / 432 MB, free: 61.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.5056, allocations: 3.188 kB / 432 MB, free: 61.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.5067, allocations: 264.8 kB / 432.2 MB, free: 61.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005524/0.5073, allocations: 202.6 kB / 432.4 MB, free: 61.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.4e-05/0.5074, allocations: 25.58 kB / 432.5 MB, free: 61.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.5098, allocations: 2.976 MB / 435.4 MB, free: 59.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5098, allocations: 7.688 kB / 435.5 MB, free: 59.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005294/0.5151, allocations: 3.131 MB / 438.6 MB, free: 59.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.5162, allocations: 439.6 kB / 439 MB, free: 58.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.5164, allocations: 24.27 kB / 439 MB, free: 58.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008308/0.5172, allocations: 96.53 kB / 439.1 MB, free: 58.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.5174, allocations: 82.58 kB / 439.2 MB, free: 58.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.069e-05/0.5175, allocations: 33.14 kB / 439.2 MB, free: 58.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001939/0.5195, allocations: 1.212 MB / 440.5 MB, free: 58.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.5195, allocations: 0 / 440.5 MB, free: 58.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001719/0.5212, allocations: 499.2 kB / 440.9 MB, free: 58.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004205/0.5254, allocations: 3.723 MB / 444.7 MB, free: 56.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00325/0.5287, allocations: 2.344 MB / 447 MB, free: 55.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5287, allocations: 3.594 kB / 447 MB, free: 55.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.5303, allocations: 1.334 MB / 448.3 MB, free: 54.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/0.5327, allocations: 470.7 kB / 448.8 MB, free: 54.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0236/0.5563, allocations: 15.35 MB / 464.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/0.558, allocations: 2.002 MB / 466.2 MB, free: 37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001773/0.5597, allocations: 0.4966 MB / 466.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/0.5612, allocations: 1.015 MB / 467.7 MB, free: 35.49 MB / 350.1 MB Notification: Performance of SimCode: time 2.074e-06/0.5612, allocations: 0 / 467.7 MB, free: 35.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07071/0.6319, allocations: 43.13 MB / 0.4988 GB, free: 8.816 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.6322, allocations: 244.3 kB / 0.4991 GB, free: 8.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.789/3.421, allocations: 0 / 0.4991 GB, free: 8.57 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat