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.0009031/0.0009034, allocations: 95.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009657/0.0009657, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002507/0.0002507, allocations: 4 kB / 306.7 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 51.49 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2533/0.3669, allocations: 17.98 MB / 376.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01439/0.3813, allocations: 6.419 MB / 382.6 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005199/0.3866, allocations: 123.7 kB / 382.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005356/0.392, allocations: 1.144 MB / 383.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009452/0.4014, allocations: 1.876 MB / 385.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004555/0.406, allocations: 0.8941 MB / 386.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01148/0.4175, allocations: 4.442 MB / 391.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008823/0.4264, allocations: 3.758 MB / 394.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005243/0.4316, allocations: 2.04 MB / 396.9 MB, free: 2.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005714/0.4374, allocations: 2.512 MB / 399.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001835/0.4393, allocations: 331.2 kB / 399.7 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004547/0.4438, allocations: 0.5655 MB / 400.3 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002106/0.446, allocations: 1.367 MB / 401.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003343/0.4493, allocations: 1.195 MB / 402.8 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/0.4609, allocations: 8.725 MB / 411.6 MB, free: 7.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.4609, allocations: 0 / 411.6 MB, free: 7.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.461, allocations: 4 kB / 411.6 MB, free: 7.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003722/0.4613, allocations: 3.938 kB / 411.6 MB, free: 7.156 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.01799/0.4793, allocations: 5.879 MB / 417.5 MB, free: 1.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.4794, allocations: 8.031 kB / 417.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002845/0.4822, allocations: 0.7366 MB / 418.2 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005751/0.488, allocations: 1.07 MB / 419.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009308/0.4973, allocations: 3.587 MB / 422.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005483/0.4979, allocations: 418.7 kB / 423.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002124/0.5001, allocations: 0.5233 MB / 423.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01854/0.5186, allocations: 6.985 MB / 430.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.5188, allocations: 11.84 kB / 430.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006791/0.5195, allocations: 220 kB / 431 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002829/0.5198, allocations: 262.6 kB / 431.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0132/0.533, allocations: 5.937 MB / 437.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04325/0.5763, allocations: 22.61 MB / 459.8 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009805/0.5861, allocations: 8.534 MB / 468.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/0.6013, allocations: 5.383 MB / 473.7 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.669e-05/0.6015, allocations: 64.5 kB / 473.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=232): time 4.187e-06/0.6015, allocations: 0 / 473.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=254): time 0.02576/0.6272, allocations: 11.77 MB / 485.6 MB, free: 10.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.6273, allocations: 77.41 kB / 485.6 MB, free: 10.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004976/0.6323, allocations: 3.034 MB / 488.7 MB, free: 7.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004761/0.6328, allocations: 69.7 kB / 488.7 MB, free: 7.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001966/0.6348, allocations: 2.491 MB / 491.2 MB, free: 5.246 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/0.6359, allocations: 0.8742 MB / 492.1 MB, free: 4.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.6361, allocations: 64 kB / 492.2 MB, free: 4.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002819/0.6364, allocations: 436.8 kB / 492.6 MB, free: 3.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002496/0.6389, allocations: 1.369 MB / 494 MB, free: 2.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003189/0.6421, allocations: 2.349 MB / 496.3 MB, free: 15.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003076/0.6452, allocations: 1.772 MB / 498.1 MB, free: 13.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.091e-05/0.6452, allocations: 8 kB / 498.1 MB, free: 13.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.00853/0.6538, allocations: 4.786 MB / 0.4911 GB, free: 9.012 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.6538, allocations: 23.94 kB / 0.4911 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.3e-05/0.6539, allocations: 28 kB / 0.4911 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.6552, allocations: 0.5368 MB / 0.4917 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002879/0.6581, allocations: 0.7761 MB / 0.4924 GB, free: 7.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009025/0.6671, allocations: 9.544 MB / 0.5017 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003614/0.6708, allocations: 203.9 kB / 0.5019 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005143/0.6713, allocations: 143.9 kB / 0.5021 GB, free: 13.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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 (389): * Single equations (assignments): 382 * 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 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003756/0.6751, allocations: 1.586 MB / 0.5036 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009657/0.6761, allocations: 347.7 kB / 0.5039 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007392/0.6835, allocations: 4.188 MB / 0.508 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.67e-05/0.6835, allocations: 28 kB / 0.5081 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.6836, allocations: 8 kB / 0.5081 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.516e-05/0.6836, allocations: 11.95 kB / 0.5081 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01772/0.7013, allocations: 9.229 MB / 0.5171 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.7013, allocations: 8 kB / 0.5171 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/0.7032, allocations: 448 kB / 0.5175 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00188/0.7051, allocations: 0.7351 MB / 0.5182 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/0.7053, allocations: 67.97 kB / 0.5183 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2711/0.9764, allocations: 15.49 MB / 0.5334 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/0.9765, allocations: 10.5 kB / 0.5335 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/0.9889, allocations: 6.638 MB / 0.5399 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003537/0.9925, allocations: 0.6971 MB / 0.5406 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001166/0.9937, allocations: 64.8 kB / 0.5407 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002036/0.9957, allocations: 154.5 kB / 0.5408 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005655/0.9963, allocations: 196.8 kB / 0.541 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/0.9965, allocations: 80.83 kB / 0.5411 GB, free: 129.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005337/1.002, allocations: 2.028 MB / 0.5431 GB, free: 128.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.002, allocations: 0 / 0.5431 GB, free: 128.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006195/1.008, allocations: 1.007 MB / 0.5441 GB, free: 128.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (215): * Single equations (assignments): 207 * 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 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01276/1.021, allocations: 8.765 MB / 0.5526 GB, free: 123.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006997/1.028, allocations: 4.232 MB / 0.5567 GB, free: 121.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.626e-05/1.028, allocations: 2.812 kB / 0.5567 GB, free: 121.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004419/1.032, allocations: 2.807 MB / 0.5595 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004328/1.037, allocations: 0.8975 MB / 0.5604 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06712/1.104, allocations: 52.34 MB / 0.6115 GB, free: 71.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002867/1.107, allocations: 3.524 MB / 0.6149 GB, free: 68.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002883/1.11, allocations: 0.8192 MB / 0.6157 GB, free: 67.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002421/1.112, allocations: 2.104 MB / 0.6178 GB, free: 65.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/1.112, allocations: 3.938 kB / 0.6178 GB, free: 65.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.347/1.459, allocations: 84.85 MB / 0.7006 GB, free: 125.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/1.459, allocations: 248.1 kB / 0.7009 GB, free: 125.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.974/5.434, allocations: 3.5 kB / 0.7009 GB, free: 125.2 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