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.0009662/0.0009662, allocations: 97.52 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.001175/0.001175, allocations: 203 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.394/1.394, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002599, allocations: 4 kB / 306.7 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1093, allocations: 51.5 MB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01475/0.1241, allocations: 13.37 MB / 371.6 MB, free: 332 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2338/0.358, allocations: 5.312 MB / 376.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004489/0.3625, allocations: 92.91 kB / 377 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004309/0.3668, allocations: 0.9727 MB / 378 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007982/0.3748, allocations: 1.427 MB / 379.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003564/0.3784, allocations: 0.7539 MB / 380.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007717/0.3862, allocations: 2.748 MB / 382.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004511/0.3907, allocations: 2.575 MB / 385.5 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00352/0.3943, allocations: 1.267 MB / 386.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004203/0.3985, allocations: 1.599 MB / 388.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001195/0.3997, allocations: 199.1 kB / 388.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003085/0.4028, allocations: 416 kB / 388.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001422/0.4042, allocations: 0.8536 MB / 389.8 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.4064, allocations: 0.7612 MB / 390.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007243/0.4136, allocations: 5.554 MB / 396.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4137, allocations: 0 / 396.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4137, allocations: 1.562 kB / 396.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002765/0.414, allocations: 0 / 396.1 MB, free: 2.734 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.01446/0.4284, allocations: 3.984 MB / 400.1 MB, free: 136 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.4285, allocations: 16.83 kB / 400.1 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002317/0.4308, allocations: 484.4 kB / 400.6 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003892/0.4347, allocations: 0.6896 MB / 401.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.441, allocations: 2.404 MB / 403.7 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/0.4413, allocations: 263.3 kB / 403.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007426/0.4421, allocations: 346.4 kB / 404.3 MB, free: 13.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009219/0.4513, allocations: 4.416 MB / 408.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.852e-05/0.4514, allocations: 11.94 kB / 408.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003368/0.4517, allocations: 136 kB / 408.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/0.4519, allocations: 170.7 kB / 409 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007009/0.4589, allocations: 3.728 MB / 412.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02838/0.4874, allocations: 14.65 MB / 427.4 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006114/0.4935, allocations: 5.594 MB / 433 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008756/0.5023, allocations: 3.352 MB / 436.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.733e-05/0.5024, allocations: 43.88 kB / 436.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 6.462e-06/0.5025, allocations: 0 / 436.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=141): time 0.0124/0.5149, allocations: 5.665 MB / 442 MB, free: 6.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.515, allocations: 72.72 kB / 442.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004231/0.5192, allocations: 2.019 MB / 444.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000199/0.5194, allocations: 53.64 kB / 444.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.5208, allocations: 1.661 MB / 445.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000556/0.5214, allocations: 485 kB / 446.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.5216, allocations: 40 kB / 446.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5218, allocations: 377.9 kB / 446.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.5232, allocations: 0.7379 MB / 447.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/0.525, allocations: 1.353 MB / 448.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.5268, allocations: 0.9758 MB / 449.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.035e-05/0.5268, allocations: 4 kB / 449.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.004878/0.5317, allocations: 2.564 MB / 452.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.5318, allocations: 12 kB / 452.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/0.5318, allocations: 20 kB / 452.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/0.5323, allocations: 142.5 kB / 452.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.534, allocations: 483.5 kB / 453 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.5371, allocations: 3.13 MB / 456.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/0.5393, allocations: 115.7 kB / 456.2 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/0.5396, allocations: 84 kB / 456.3 MB, free: 7.824 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (233): * Single equations (assignments): 230 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002829/0.5424, allocations: 1.052 MB / 457.4 MB, free: 6.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007547/0.5432, allocations: 217.3 kB / 457.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.5478, allocations: 2.263 MB / 459.8 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.5478, allocations: 16 kB / 459.8 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/0.5478, allocations: 4 kB / 459.9 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/0.5479, allocations: 7.969 kB / 459.9 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.5606, allocations: 5.354 MB / 465.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/0.5607, allocations: 0 / 465.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.5618, allocations: 259.9 kB / 465.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007301/0.5626, allocations: 263.1 kB / 465.7 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.5627, allocations: 35.98 kB / 465.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00712/0.5699, allocations: 7.154 MB / 472.9 MB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.5699, allocations: 4.031 kB / 472.9 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006214/0.5761, allocations: 3.491 MB / 476.4 MB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/0.5778, allocations: 466.4 kB / 476.9 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000776/0.5786, allocations: 32 kB / 476.9 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.5802, allocations: 75.92 kB / 477 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002647/0.5805, allocations: 101.1 kB / 477.1 MB, free: 2.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5806, allocations: 44 kB / 477.1 MB, free: 2.035 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003181/0.5838, allocations: 1.368 MB / 478.5 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5838, allocations: 0 / 478.5 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003359/0.5872, allocations: 0.5665 MB / 479 MB, free: 84 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (121): * Single equations (assignments): 117 * 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%) 1,(1,100.0%) 5,(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.006699/0.5939, allocations: 4.815 MB / 483.9 MB, free: 11.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003839/0.5978, allocations: 2.147 MB / 486 MB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.5978, allocations: 0.9375 kB / 486 MB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002232/0.6001, allocations: 1.428 MB / 487.4 MB, free: 7.438 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.6033, allocations: 0.5201 MB / 488 MB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05015/0.6534, allocations: 31.38 MB / 0.5072 GB, free: 6.082 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002509/0.656, allocations: 2.488 MB / 0.5096 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002059/0.6581, allocations: 0.4908 MB / 0.5101 GB, free: 3.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/0.6599, allocations: 1.308 MB / 0.5114 GB, free: 1.762 MB / 430.1 MB Notification: Performance of SimCode: time 1.653e-06/0.6599, allocations: 4 kB / 0.5114 GB, free: 1.758 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3154/0.9753, allocations: 50.26 MB / 0.5604 GB, free: 130.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.9756, allocations: 254.5 kB / 0.5607 GB, free: 130.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.743/3.718, allocations: 3.438 kB / 0.5607 GB, free: 130.2 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