Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.000953/0.0009533, allocations: 100.4 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 197.9 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002236, allocations: 4 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1097, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2642/0.374, allocations: 19.77 MB / 378.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01626/0.3903, allocations: 6.21 MB / 384.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006292/0.3967, allocations: 131.4 kB / 384.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005593/0.4023, allocations: 1.113 MB / 385.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008684/0.411, allocations: 1.697 MB / 387.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005184/0.4162, allocations: 0.8906 MB / 388.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01577/0.432, allocations: 6.595 MB / 394.7 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007978/0.4401, allocations: 3.759 MB / 398.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006082/0.4462, allocations: 2.135 MB / 400.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007078/0.4533, allocations: 2.81 MB / 403.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001811/0.4552, allocations: 336.5 kB / 403.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005181/0.4604, allocations: 0.6029 MB / 404.4 MB, free: 15.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002507/0.4629, allocations: 1.427 MB / 405.8 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004204/0.4671, allocations: 1.202 MB / 407 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.4786, allocations: 8.802 MB / 415.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4787, allocations: 0 / 415.8 MB, free: 3.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.4787, allocations: 8 kB / 415.8 MB, free: 3.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003458/0.4791, allocations: 0 / 415.8 MB, free: 3.613 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01635/0.4954, allocations: 5.902 MB / 421.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.4955, allocations: 11.97 kB / 421.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002958/0.4985, allocations: 0.7366 MB / 422.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00605/0.5045, allocations: 1.082 MB / 423.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008264/0.5128, allocations: 3.521 MB / 427 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004464/0.5133, allocations: 422.7 kB / 427.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001612/0.5149, allocations: 0.5272 MB / 428 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01714/0.5321, allocations: 7.024 MB / 435 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/0.5323, allocations: 15.89 kB / 435 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006276/0.533, allocations: 216 kB / 435.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002988/0.5333, allocations: 266.5 kB / 435.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.5471, allocations: 5.937 MB / 441.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04942/0.5966, allocations: 22.72 MB / 464.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/0.607, allocations: 8.549 MB / 472.7 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004772/0.6118, allocations: 2.3 MB / 475 MB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01469/0.6266, allocations: 6.484 MB / 481.5 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.623e-05/0.6267, allocations: 56.56 kB / 481.5 MB, free: 15.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=220): time 5.22e-06/0.6267, allocations: 0 / 481.5 MB, free: 15.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=240): time 0.02514/0.6518, allocations: 11.24 MB / 492.8 MB, free: 4.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.6519, allocations: 73.41 kB / 492.9 MB, free: 4.285 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006381/0.6583, allocations: 3.149 MB / 496 MB, free: 1.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005066/0.6589, allocations: 69.64 kB / 496.1 MB, free: 1.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002407/0.6613, allocations: 2.514 MB / 498.6 MB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/0.6626, allocations: 0.8319 MB / 499.4 MB, free: 13.67 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003973/0.663, allocations: 60 kB / 499.5 MB, free: 13.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003372/0.6634, allocations: 436.5 kB / 499.9 MB, free: 13.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002798/0.6662, allocations: 1.338 MB / 0.4895 GB, free: 11.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003463/0.6697, allocations: 2.339 MB / 0.4918 GB, free: 9.055 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003272/0.673, allocations: 1.736 MB / 0.4935 GB, free: 7.297 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.199e-05/0.673, allocations: 8 kB / 0.4935 GB, free: 7.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009385/0.6824, allocations: 4.733 MB / 0.4981 GB, free: 2.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.473e-05/0.6825, allocations: 20 kB / 0.4981 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.508e-05/0.6826, allocations: 32 kB / 0.4981 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.6839, allocations: 0.5506 MB / 0.4987 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.6868, allocations: 0.7449 MB / 0.4994 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009253/0.6961, allocations: 9.569 MB / 0.5088 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003206/0.6994, allocations: 199.6 kB / 0.5089 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006013/0.7, allocations: 144 kB / 0.5091 GB, free: 6.504 MB / 430.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 (377): * Single equations (assignments): 370 * 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%) 6,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004061/0.7041, allocations: 1.563 MB / 0.5106 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/0.7053, allocations: 351.7 kB / 0.5109 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008722/0.714, allocations: 4.109 MB / 0.515 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-05/0.7141, allocations: 24 kB / 0.515 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.016e-05/0.7141, allocations: 8 kB / 0.515 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-05/0.7142, allocations: 11.95 kB / 0.515 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01919/0.7334, allocations: 9.014 MB / 0.5238 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.409e-05/0.7334, allocations: 4 kB / 0.5238 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001965/0.7354, allocations: 412 kB / 0.5242 GB, free: 6.715 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.7376, allocations: 0.7665 MB / 0.5249 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003256/0.7379, allocations: 63.97 kB / 0.525 GB, free: 5.863 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2744/1.012, allocations: 15.47 MB / 0.5401 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/1.012, allocations: 13.64 kB / 0.5401 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/1.024, allocations: 5.877 MB / 0.5459 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002546/1.027, allocations: 0.7088 MB / 0.5466 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008843/1.027, allocations: 54.56 kB / 0.5466 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/1.029, allocations: 149.2 kB / 0.5468 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005587/1.03, allocations: 184.5 kB / 0.5469 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/1.03, allocations: 72.14 kB / 0.547 GB, free: 126.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005301/1.035, allocations: 2.112 MB / 0.5491 GB, free: 125.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.21e-07/1.035, allocations: 0 / 0.5491 GB, free: 125.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006267/1.042, allocations: 1 MB / 0.55 GB, free: 125.6 MB / 446.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 (198): * Single equations (assignments): 190 * 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%) 6,(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.01162/1.053, allocations: 6.579 MB / 0.5565 GB, free: 122.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006049/1.059, allocations: 4.16 MB / 0.5605 GB, free: 120.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/1.059, allocations: 1.656 kB / 0.5605 GB, free: 120.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003931/1.063, allocations: 2.777 MB / 0.5632 GB, free: 118.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004697/1.068, allocations: 0.9314 MB / 0.5642 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05776/1.126, allocations: 31.59 MB / 0.595 GB, free: 90.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003059/1.129, allocations: 3.416 MB / 0.5983 GB, free: 87.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003034/1.132, allocations: 0.8035 MB / 0.5991 GB, free: 86.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002374/1.134, allocations: 2.113 MB / 0.6012 GB, free: 84.59 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/1.134, allocations: 0 / 0.6012 GB, free: 84.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1224/1.257, allocations: 85.46 MB / 0.6846 GB, free: 15.77 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002143/1.257, allocations: 260 kB / 0.6849 GB, free: 15.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.001/5.258, allocations: 0 / 0.6849 GB, free: 15.43 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat