Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009196/0.0009197, allocations: 92.56 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 199.1 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.417/1.417, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.0003391, allocations: 4 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1464, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.2456/0.392, allocations: 14.49 MB / 372.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.4044, allocations: 5.199 MB / 378 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004086/0.4086, allocations: 96.22 kB / 378.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004254/0.4129, allocations: 0.8594 MB / 379 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005751/0.4186, allocations: 1.079 MB / 380.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003179/0.4219, allocations: 0.6868 MB / 380.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008403/0.4303, allocations: 3.882 MB / 384.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005202/0.4355, allocations: 2.58 MB / 387.2 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003605/0.4392, allocations: 1.305 MB / 388.5 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004374/0.4436, allocations: 1.732 MB / 390.2 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001351/0.4449, allocations: 203.2 kB / 390.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.448, allocations: 436.5 kB / 390.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002098/0.4501, allocations: 0.8853 MB / 391.7 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.4524, allocations: 0.7646 MB / 392.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009151/0.4616, allocations: 5.62 MB / 398.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.4617, allocations: 0 / 398.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.4617, allocations: 2.062 kB / 398.1 MB, free: 1.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003801/0.4621, allocations: 0 / 398.1 MB, free: 1.438 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01424/0.4763, allocations: 3.987 MB / 402.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.4764, allocations: 8.594 kB / 402.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002336/0.4787, allocations: 499.2 kB / 402.6 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004627/0.4834, allocations: 0.6805 MB / 403.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006841/0.4902, allocations: 2.373 MB / 405.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002612/0.4905, allocations: 277.1 kB / 405.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006173/0.4912, allocations: 338.7 kB / 406.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009314/0.5005, allocations: 4.453 MB / 410.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.191e-05/0.5006, allocations: 10.42 kB / 410.7 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003263/0.5009, allocations: 144 kB / 410.9 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.5011, allocations: 162.8 kB / 411 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007393/0.5085, allocations: 3.728 MB / 414.8 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02779/0.5363, allocations: 14.72 MB / 429.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005983/0.5424, allocations: 5.605 MB / 435.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/0.5455, allocations: 1.592 MB / 436.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008533/0.5541, allocations: 4.229 MB / 440.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.174e-05/0.5542, allocations: 51.88 kB / 441 MB, free: 7.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.387e-06/0.5542, allocations: 0 / 441 MB, free: 7.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01205/0.5662, allocations: 5.689 MB / 446.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.5664, allocations: 76.66 kB / 446.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003807/0.5702, allocations: 2.099 MB / 448.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.5704, allocations: 53.64 kB / 448.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/0.5717, allocations: 1.657 MB / 450.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004769/0.5722, allocations: 471.9 kB / 451 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/0.5723, allocations: 36 kB / 451 MB, free: 13.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.5725, allocations: 373.9 kB / 451.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.5738, allocations: 0.7301 MB / 452.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001857/0.5757, allocations: 1.358 MB / 453.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.5772, allocations: 0.9628 MB / 454.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.5772, allocations: 8 kB / 454.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004806/0.5821, allocations: 2.584 MB / 457 MB, free: 7.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.5821, allocations: 12 kB / 457 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.963e-05/0.5822, allocations: 20 kB / 457.1 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005584/0.5827, allocations: 194.9 kB / 457.3 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.5844, allocations: 455.3 kB / 457.7 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/0.5879, allocations: 3.513 MB / 461.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/0.5901, allocations: 111.7 kB / 461.3 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003038/0.5905, allocations: 88.09 kB / 461.4 MB, free: 2.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * 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: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002641/0.5931, allocations: 1.048 MB / 462.5 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007335/0.5939, allocations: 213.4 kB / 462.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004582/0.5984, allocations: 2.275 MB / 464.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.5985, allocations: 16 kB / 465 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.5985, allocations: 4 kB / 465 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.5985, allocations: 3.984 kB / 465 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.6096, allocations: 5.294 MB / 470.3 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.6096, allocations: 4.25 kB / 470.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.6107, allocations: 231.7 kB / 470.5 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000883/0.6116, allocations: 317.1 kB / 470.8 MB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.6117, allocations: 35.94 kB / 470.8 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007844/0.6196, allocations: 7.543 MB / 478.4 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.6196, allocations: 8.094 kB / 478.4 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006104/0.6258, allocations: 3.281 MB / 481.7 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/0.6274, allocations: 470.2 kB / 482.1 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007222/0.6281, allocations: 24 kB / 482.1 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.6296, allocations: 79.92 kB / 482.2 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002473/0.6299, allocations: 89.14 kB / 482.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.63, allocations: 39.98 kB / 482.3 MB, free: 12.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003555/0.6336, allocations: 1.42 MB / 483.8 MB, free: 11.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6336, allocations: 7.938 kB / 483.8 MB, free: 11.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004464/0.6381, allocations: 0.5703 MB / 484.3 MB, free: 10.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.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 (109): * Single equations (assignments): 105 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007439/0.6455, allocations: 3.905 MB / 488.3 MB, free: 6.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00562/0.6512, allocations: 2.132 MB / 490.4 MB, free: 4.664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/0.6513, allocations: 4.062 kB / 490.4 MB, free: 4.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002559/0.6539, allocations: 1.422 MB / 491.8 MB, free: 3.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00582/0.6597, allocations: 0.5425 MB / 492.4 MB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04421/0.704, allocations: 18.44 MB / 0.4988 GB, free: 14.88 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003546/0.7076, allocations: 2.425 MB / 0.5012 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002095/0.7097, allocations: 494.6 kB / 0.5017 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002401/0.7121, allocations: 1.304 MB / 0.5029 GB, free: 10.63 MB / 430.1 MB Notification: Performance of SimCode: time 2.364e-06/0.7121, allocations: 0 / 0.5029 GB, free: 10.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3155/1.028, allocations: 50.98 MB / 0.5527 GB, free: 140.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/1.028, allocations: 263.2 kB / 0.553 GB, free: 140.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.908/3.936, allocations: 4 kB / 0.553 GB, free: 140.4 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat