Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",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.001292/0.001292, allocations: 95.98 kB / 16.31 MB, free: 6.461 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.001427/0.001427, allocations: 175.7 kB / 17.19 MB, free: 6.348 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.381/1.381, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002875, allocations: 7.172 kB / 300.8 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1068, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009107/0.116, allocations: 7.283 MB / 358.5 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006033/0.122, allocations: 3.017 MB / 361.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.1233, allocations: 39.81 kB / 361.6 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.125, allocations: 0.5637 MB / 362.1 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002313/0.1273, allocations: 0.6387 MB / 362.8 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007966/0.1281, allocations: 215.7 kB / 363 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002318/0.1304, allocations: 1.4 MB / 364.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1318, allocations: 0.9647 MB / 365.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008402/0.1326, allocations: 0.6538 MB / 366 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.1339, allocations: 0.821 MB / 366.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002941/0.1342, allocations: 100 kB / 366.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004525/0.1346, allocations: 167.9 kB / 367.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005077/0.1351, allocations: 0.4985 MB / 367.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000349/0.1355, allocations: 388.8 kB / 368 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002654/0.1382, allocations: 2.466 MB / 370.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1382, allocations: 3.938 kB / 370.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1382, allocations: 0 / 370.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.1382, allocations: 0 / 370.4 MB, free: 8.375 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003838/0.1421, allocations: 1.954 MB / 372.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.1421, allocations: 11.97 kB / 372.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003214/0.1425, allocations: 232.1 kB / 372.6 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006341/0.1431, allocations: 221.5 kB / 372.8 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002078/0.1452, allocations: 1.164 MB / 374 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.1453, allocations: 115.1 kB / 374.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.1455, allocations: 151.9 kB / 374.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00318/0.1487, allocations: 1.985 MB / 376.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.073e-05/0.1488, allocations: 7.906 kB / 376.3 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/0.1489, allocations: 67.98 kB / 376.3 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-05/0.149, allocations: 74.91 kB / 376.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002652/0.1517, allocations: 1.643 MB / 378 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.1622, allocations: 6.933 MB / 385 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/0.1631, allocations: 448.8 kB / 385.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002279/0.1633, allocations: 121.5 kB / 385.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.1633, allocations: 35 kB / 385.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 3.216e-06/0.1634, allocations: 0 / 385.6 MB, free: 8.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.006674/0.17, allocations: 3.295 MB / 388.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002407/0.1725, allocations: 2.205 MB / 391.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/0.1747, allocations: 1.584 MB / 392.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.671e-05/0.1748, allocations: 37.7 kB / 392.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007141/0.1755, allocations: 1.026 MB / 393.7 MB, free: 272 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.1757, allocations: 240.8 kB / 393.9 MB, free: 28 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.1758, allocations: 28 kB / 394 MB, free: 0 / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.176, allocations: 373.9 kB / 394.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007824/0.1768, allocations: 0.5074 MB / 394.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.1783, allocations: 1.453 MB / 396.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.1794, allocations: 0.8008 MB / 397.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.1794, allocations: 11.94 kB / 397.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003304/0.1827, allocations: 2.138 MB / 399.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.1828, allocations: 23.95 kB / 399.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.119e-05/0.1828, allocations: 36.16 kB / 399.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005285/0.1833, allocations: 226.4 kB / 399.5 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.1845, allocations: 399.2 kB / 399.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.1861, allocations: 1.733 MB / 401.7 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.1875, allocations: 131.4 kB / 401.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.1876, allocations: 108 kB / 401.9 MB, free: 7.445 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009441/0.1886, allocations: 0.5828 MB / 402.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.1888, allocations: 154.8 kB / 402.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.1907, allocations: 1.11 MB / 403.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.1907, allocations: 7.984 kB / 403.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1907, allocations: 4 kB / 403.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.1907, allocations: 4 kB / 403.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005599/0.1963, allocations: 3.367 MB / 407.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.1964, allocations: 4 kB / 407.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004216/0.1968, allocations: 115.9 kB / 407.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006183/0.1974, allocations: 234.3 kB / 407.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.321e-05/0.1975, allocations: 16 kB / 407.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003913/0.2014, allocations: 3.765 MB / 411.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00209/0.2035, allocations: 2.045 MB / 413.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002966/0.2065, allocations: 2.058 MB / 415.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000741/0.2072, allocations: 311.1 kB / 415.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.2074, allocations: 16 kB / 415.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006278/0.2081, allocations: 51.94 kB / 415.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.2082, allocations: 63.88 kB / 415.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.759e-05/0.2083, allocations: 24 kB / 415.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001516/0.2098, allocations: 1.039 MB / 416.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2098, allocations: 0 / 416.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001642/0.2115, allocations: 384 kB / 417.2 MB, free: 7.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003585/0.2151, allocations: 4.011 MB / 421.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.2177, allocations: 1.593 MB / 422.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.2177, allocations: 4 kB / 422.8 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001298/0.2191, allocations: 0.8365 MB / 423.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.2208, allocations: 381.6 kB / 424 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1948/0.4156, allocations: 33.61 MB / 457.6 MB, free: 37.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001473/0.4171, allocations: 1.508 MB / 459.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001469/0.4186, allocations: 352.3 kB / 459.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009145/0.4196, allocations: 0.622 MB / 460.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.635e-06/0.4196, allocations: 0 / 460.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05759/0.4772, allocations: 33.68 MB / 493.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.4774, allocations: 238.2 kB / 494 MB, free: 8.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.843/3.321, allocations: 3.938 kB / 494 MB, free: 8.383 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat