Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",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.0008207/0.0008202, allocations: 93.23 kB / 16.31 MB, free: 6.008 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.000817/0.0008171, allocations: 185.4 kB / 17.21 MB, free: 5.902 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.405/1.405, allocations: 223.3 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003098, allocations: 7.094 kB / 300.9 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 50.43 MB / 351.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02005/0.1306, allocations: 19.2 MB / 370.6 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.1443, allocations: 5.999 MB / 376.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004249/0.1486, allocations: 127.5 kB / 376.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004734/0.1533, allocations: 1.106 MB / 377.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007466/0.1608, allocations: 1.704 MB / 379.5 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004189/0.165, allocations: 0.8657 MB / 380.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0121/0.1771, allocations: 6.504 MB / 386.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009631/0.1868, allocations: 3.754 MB / 390.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004982/0.1918, allocations: 2.132 MB / 392.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006023/0.1979, allocations: 2.797 MB / 395.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002025/0.2, allocations: 336 kB / 395.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003641/0.2036, allocations: 0.5817 MB / 396.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003028/0.2067, allocations: 1.421 MB / 397.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003184/0.2099, allocations: 1.194 MB / 399.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01201/0.222, allocations: 8.769 MB / 407.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.222, allocations: 0 / 407.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.222, allocations: 0 / 407.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003749/0.2224, allocations: 0 / 407.8 MB, free: 2.891 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01633/0.2387, allocations: 5.878 MB / 413.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.2388, allocations: 8.031 kB / 413.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002769/0.2416, allocations: 0.7366 MB / 414.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00578/0.2474, allocations: 1.07 MB / 415.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007767/0.2552, allocations: 3.508 MB / 419 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004254/0.2556, allocations: 418.7 kB / 419.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/0.2571, allocations: 0.5271 MB / 420 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2376/0.4947, allocations: 7.027 MB / 427 MB, free: 54.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001987/0.495, allocations: 8.156 kB / 427 MB, free: 54.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006573/0.4956, allocations: 219.5 kB / 427.2 MB, free: 54.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002686/0.4959, allocations: 260 kB / 427.5 MB, free: 54.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/0.5101, allocations: 5.946 MB / 433.4 MB, free: 54.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03774/0.5478, allocations: 22.53 MB / 456 MB, free: 40.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006439/0.5543, allocations: 8.284 MB / 464.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/0.5575, allocations: 2.208 MB / 466.4 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009506/0.567, allocations: 6.198 MB / 472.6 MB, free: 26.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.5671, allocations: 60.55 kB / 472.7 MB, free: 26.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=220): time 4.699e-06/0.5671, allocations: 0 / 472.7 MB, free: 26.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=240): time 0.01956/0.5866, allocations: 11.2 MB / 483.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.5867, allocations: 73.41 kB / 484 MB, free: 15.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004332/0.5911, allocations: 3.124 MB / 487.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003118/0.5914, allocations: 69.7 kB / 487.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/0.5927, allocations: 2.502 MB / 489.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005849/0.5932, allocations: 0.8269 MB / 490.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.5934, allocations: 64 kB / 490.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5935, allocations: 432.6 kB / 491 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/0.5955, allocations: 1.341 MB / 492.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002266/0.5978, allocations: 2.342 MB / 494.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.6, allocations: 1.74 MB / 496.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/0.6, allocations: 12 kB / 496.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007456/0.6075, allocations: 4.705 MB / 0.4894 GB, free: 13.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.6075, allocations: 16 kB / 0.4894 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.919e-05/0.6076, allocations: 32 kB / 0.4894 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.6088, allocations: 0.531 MB / 0.4899 GB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002738/0.6115, allocations: 0.7488 MB / 0.4907 GB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009885/0.6214, allocations: 9.412 MB / 0.4999 GB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/0.6244, allocations: 191.7 kB / 0.5 GB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003579/0.6248, allocations: 144 kB / 0.5002 GB, free: 1.883 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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: 5 * 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: 5 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003475/0.6282, allocations: 1.578 MB / 0.5017 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000967/0.6292, allocations: 351.7 kB / 0.5021 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007862/0.6371, allocations: 4.077 MB / 0.506 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/0.6371, allocations: 24 kB / 0.5061 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.6372, allocations: 8 kB / 0.5061 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.441e-05/0.6372, allocations: 11.95 kB / 0.5061 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/0.6543, allocations: 8.992 MB / 0.5149 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.6543, allocations: 4 kB / 0.5149 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/0.6561, allocations: 415.8 kB / 0.5153 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002245/0.6584, allocations: 0.7388 MB / 0.516 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/0.6586, allocations: 63.97 kB / 0.516 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01626/0.6749, allocations: 15.34 MB / 0.531 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/0.6749, allocations: 11.94 kB / 0.531 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009853/0.6848, allocations: 5.857 MB / 0.5368 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/0.6867, allocations: 0.7074 MB / 0.5374 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006373/0.6874, allocations: 59.98 kB / 0.5375 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.689, allocations: 147.9 kB / 0.5376 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004391/0.6894, allocations: 185.6 kB / 0.5378 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.6896, allocations: 71.98 kB / 0.5379 GB, free: 9.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003539/0.6931, allocations: 2.099 MB / 0.5399 GB, free: 7.652 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6931, allocations: 0 / 0.5399 GB, free: 7.652 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003973/0.6971, allocations: 0.9948 MB / 0.5409 GB, free: 6.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01009/0.7072, allocations: 6.545 MB / 0.5473 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007297/0.7145, allocations: 4.132 MB / 0.5513 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.7146, allocations: 5.812 kB / 0.5513 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004635/0.7192, allocations: 2.754 MB / 0.554 GB, free: 8.859 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005062/0.7243, allocations: 0.9181 MB / 0.5549 GB, free: 7.949 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0683/0.7926, allocations: 31.39 MB / 0.5856 GB, free: 6.418 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0045/0.7972, allocations: 3.419 MB / 0.5889 GB, free: 2.965 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003304/0.8005, allocations: 0.8034 MB / 0.5897 GB, free: 2.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00338/0.8039, allocations: 2.097 MB / 0.5917 GB, free: 64 kB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.804, allocations: 0 / 0.5917 GB, free: 64 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3148/1.119, allocations: 84.84 MB / 0.6746 GB, free: 87.16 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/1.119, allocations: 249.4 kB / 0.6748 GB, free: 86.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.13/5.249, allocations: 0 / 0.6748 GB, free: 86.82 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat