Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002167/0.002167, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 96.25 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004029, allocations: 16 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3401, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01915/0.3593, allocations: 12.82 MB / 387.5 MB, free: 35.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.3717, allocations: 5.146 MB / 392.6 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003009/0.3747, allocations: 83.62 kB / 392.7 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003532/0.3783, allocations: 0.9443 MB / 393.6 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005816/0.3841, allocations: 1.375 MB / 395 MB, free: 28.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003059/0.3872, allocations: 0.725 MB / 395.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006271/0.3935, allocations: 2.701 MB / 398.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003899/0.3975, allocations: 2.541 MB / 401 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002165/0.3997, allocations: 1.257 MB / 402.2 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002806/0.4025, allocations: 1.595 MB / 403.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006843/0.4032, allocations: 204 kB / 404 MB, free: 19.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.4049, allocations: 387.7 kB / 404.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009615/0.4058, allocations: 0.8605 MB / 405.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009802/0.4068, allocations: 0.7575 MB / 406 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006832/0.4137, allocations: 5.512 MB / 411.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4137, allocations: 7.938 kB / 411.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.4138, allocations: 0 / 411.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001604/0.4139, allocations: 0 / 411.5 MB, free: 11.8 MB / 298.7 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.01332/0.4273, allocations: 3.945 MB / 415.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/0.4273, allocations: 8.031 kB / 415.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001574/0.4289, allocations: 497.3 kB / 416 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004427/0.4334, allocations: 0.6744 MB / 416.6 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00611/0.4395, allocations: 2.28 MB / 418.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000272/0.4398, allocations: 274.9 kB / 419.2 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008143/0.4407, allocations: 339.9 kB / 419.5 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.4528, allocations: 4.409 MB / 423.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/0.453, allocations: 0 / 423.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005316/0.4536, allocations: 147.9 kB / 424.1 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00025/0.4539, allocations: 166.8 kB / 424.2 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01187/0.4657, allocations: 3.716 MB / 428 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03771/0.5035, allocations: 14.48 MB / 442.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008757/0.5123, allocations: 5.35 MB / 447.8 MB, free: 6.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009475/0.5218, allocations: 3.208 MB / 451 MB, free: 2.926 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.5219, allocations: 47.88 kB / 451 MB, free: 2.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=138): time 1.053e-05/0.522, allocations: 7.984 kB / 451.1 MB, free: 2.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=143): time 0.01751/0.5395, allocations: 5.763 MB / 456.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.154e-05/0.5396, allocations: 64.72 kB / 456.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006183/0.5458, allocations: 2.003 MB / 458.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004002/0.5463, allocations: 45.7 kB / 458.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00214/0.5484, allocations: 1.558 MB / 460.5 MB, free: 9.211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/0.5496, allocations: 0.4968 MB / 461 MB, free: 8.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002404/0.5498, allocations: 40 kB / 461 MB, free: 8.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003116/0.5502, allocations: 382.7 kB / 461.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003283/0.5535, allocations: 0.7457 MB / 462.1 MB, free: 7.539 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00432/0.5578, allocations: 1.361 MB / 463.5 MB, free: 5.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004342/0.5623, allocations: 0.9901 MB / 464.5 MB, free: 4.914 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-05/0.5624, allocations: 4 kB / 464.5 MB, free: 4.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.01043/0.5728, allocations: 2.453 MB / 466.9 MB, free: 2.422 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.222e-05/0.5729, allocations: 16.06 kB / 467 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-05/0.573, allocations: 20 kB / 467 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000817/0.5738, allocations: 142.5 kB / 467.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00511/0.579, allocations: 491.2 kB / 467.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005367/0.5844, allocations: 3.087 MB / 470.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/0.5882, allocations: 111.8 kB / 470.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005275/0.5888, allocations: 84 kB / 470.9 MB, free: 14.21 MB / 362.7 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 (235): * Single equations (assignments): 232 * 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.00431/0.5931, allocations: 1.056 MB / 471.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009404/0.5941, allocations: 217.3 kB / 472.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009167/0.6033, allocations: 2.282 MB / 474.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-05/0.6034, allocations: 19.94 kB / 474.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.885e-05/0.6034, allocations: 4 kB / 474.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.183e-05/0.6035, allocations: 11.97 kB / 474.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02112/0.6246, allocations: 5.405 MB / 479.9 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/0.6247, allocations: 4 kB / 479.9 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002961/0.6276, allocations: 247.6 kB / 480.1 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001722/0.6294, allocations: 267.5 kB / 480.4 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003489/0.6298, allocations: 35.98 kB / 480.4 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/0.6422, allocations: 7.169 MB / 487.6 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.6423, allocations: 4 kB / 487.6 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008928/0.6512, allocations: 3.525 MB / 491.1 MB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/0.6529, allocations: 474.2 kB / 491.6 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005219/0.6534, allocations: 28 kB / 491.6 MB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/0.6552, allocations: 79.92 kB / 491.7 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/0.6556, allocations: 105.1 kB / 491.8 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.6557, allocations: 39.98 kB / 491.8 MB, free: 8.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003321/0.6591, allocations: 1.348 MB / 493.2 MB, free: 6.918 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6591, allocations: 4 kB / 493.2 MB, free: 6.914 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003417/0.6625, allocations: 0.5586 MB / 493.7 MB, free: 6.355 MB / 378.7 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,voltageController.PI_d.x,voltageController.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 (123): * Single equations (assignments): 119 * 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.00973/0.6723, allocations: 4.83 MB / 498.6 MB, free: 1.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005742/0.6781, allocations: 2.173 MB / 0.489 GB, free: 15.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/0.6782, allocations: 9.859 kB / 0.489 GB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003571/0.6817, allocations: 1.417 MB / 0.4904 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/0.6858, allocations: 0.5118 MB / 0.4909 GB, free: 13.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.326/1.012, allocations: 31.31 MB / 0.5215 GB, free: 109 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/1.015, allocations: 2.432 MB / 0.5238 GB, free: 108 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00258/1.017, allocations: 1.318 MB / 0.5251 GB, free: 106.9 MB / 394.7 MB Notification: Performance of SimCode: time 9.92e-07/1.017, allocations: 0 / 0.5251 GB, free: 106.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.627/4.645, allocations: 110.8 MB / 0.6334 GB, free: 14.84 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat