Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 98.27 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 178.7 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 16 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01517/0.1233, allocations: 12.82 MB / 341.2 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.1348, allocations: 5.132 MB / 346.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003132/0.138, allocations: 83.62 kB / 346.5 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003552/0.1415, allocations: 0.9482 MB / 347.4 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005813/0.1474, allocations: 1.386 MB / 348.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00288/0.1503, allocations: 0.7251 MB / 349.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006006/0.1563, allocations: 2.703 MB / 352.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00466/0.161, allocations: 2.52 MB / 354.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002551/0.1636, allocations: 1.265 MB / 356 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002866/0.1664, allocations: 1.595 MB / 357.6 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009334/0.1674, allocations: 203.9 kB / 357.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.1692, allocations: 395.7 kB / 358.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001395/0.1706, allocations: 0.8566 MB / 359 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.1722, allocations: 0.7575 MB / 359.8 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006254/0.1785, allocations: 5.524 MB / 365.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1785, allocations: 0 / 365.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1785, allocations: 0 / 365.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000247/0.1788, allocations: 0 / 365.3 MB, free: 14.93 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.009949/0.1888, allocations: 3.932 MB / 369.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1888, allocations: 11.97 kB / 369.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001315/0.1901, allocations: 0.4895 MB / 369.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003117/0.1933, allocations: 0.6744 MB / 370.4 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004608/0.1979, allocations: 2.28 MB / 372.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/0.1981, allocations: 270.9 kB / 373 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004956/0.1987, allocations: 347.9 kB / 373.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007579/0.2062, allocations: 4.406 MB / 377.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.219e-05/0.2063, allocations: 11.84 kB / 377.7 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002895/0.2066, allocations: 140 kB / 377.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/0.2068, allocations: 166.7 kB / 378 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1942/0.4011, allocations: 3.705 MB / 381.7 MB, free: 29.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02482/0.4259, allocations: 14.48 MB / 396.2 MB, free: 25.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00427/0.4302, allocations: 5.348 MB / 401.6 MB, free: 21.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005253/0.4355, allocations: 3.201 MB / 404.8 MB, free: 20.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.4356, allocations: 50.66 kB / 404.8 MB, free: 20.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=138): time 3.627e-06/0.4356, allocations: 7.547 kB / 404.8 MB, free: 20.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=143): time 0.009088/0.4447, allocations: 5.778 MB / 410.6 MB, free: 17.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.4447, allocations: 67.34 kB / 410.7 MB, free: 17.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.447, allocations: 1.993 MB / 412.7 MB, free: 16.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.024e-05/0.4471, allocations: 51.11 kB / 412.7 MB, free: 16.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006987/0.4478, allocations: 1.639 MB / 414.4 MB, free: 15.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002599/0.4481, allocations: 0.4906 MB / 414.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.604e-05/0.4482, allocations: 35.34 kB / 414.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.459e-05/0.4483, allocations: 385 kB / 415.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009461/0.4492, allocations: 0.7449 MB / 416 MB, free: 14.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.4504, allocations: 1.356 MB / 417.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.4515, allocations: 0.9895 MB / 418.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.4516, allocations: 8 kB / 418.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.003079/0.4546, allocations: 2.579 MB / 420.9 MB, free: 9.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.4547, allocations: 12 kB / 420.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/0.4547, allocations: 20 kB / 421 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003203/0.4551, allocations: 143 kB / 421.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.4566, allocations: 490.6 kB / 421.6 MB, free: 8.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.4583, allocations: 3.09 MB / 424.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.4596, allocations: 116 kB / 424.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.4597, allocations: 87.98 kB / 424.9 MB, free: 5.297 MB / 318.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 (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.00179/0.4615, allocations: 1.058 MB / 425.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003574/0.4619, allocations: 213.3 kB / 426.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/0.465, allocations: 2.294 MB / 428.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.465, allocations: 12 kB / 428.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.465, allocations: 4 kB / 428.4 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.4651, allocations: 11.97 kB / 428.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008137/0.4732, allocations: 5.412 MB / 433.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.106e-06/0.4733, allocations: 4 kB / 433.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.4743, allocations: 252.4 kB / 434.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006457/0.475, allocations: 276.9 kB / 434.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.561e-05/0.4751, allocations: 31.98 kB / 434.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006398/0.4815, allocations: 7.159 MB / 441.6 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.4815, allocations: 7.688 kB / 441.6 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005166/0.4867, allocations: 3.52 MB / 445.1 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/0.4882, allocations: 466.5 kB / 445.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.4885, allocations: 28 kB / 445.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009365/0.4894, allocations: 71.92 kB / 445.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.4896, allocations: 103.6 kB / 445.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.147e-05/0.4897, allocations: 43.98 kB / 445.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002089/0.4918, allocations: 1.355 MB / 447.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4918, allocations: 0 / 447.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002531/0.4944, allocations: 0.5586 MB / 447.7 MB, free: 13.65 MB / 350.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,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.005828/0.5002, allocations: 4.84 MB / 452.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003422/0.5037, allocations: 2.17 MB / 454.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5037, allocations: 0 / 454.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.5057, allocations: 1.43 MB / 456.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/0.5081, allocations: 0.504 MB / 456.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03871/0.5468, allocations: 31.34 MB / 488 MB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002194/0.549, allocations: 2.483 MB / 490.5 MB, free: 1.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00183/0.5509, allocations: 0.4926 MB / 491 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/0.5525, allocations: 1.301 MB / 492.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5525, allocations: 4 kB / 492.3 MB, free: 15.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2592/0.8117, allocations: 49.79 MB / 0.5294 GB, free: 135.1 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.8119, allocations: 228.2 kB / 0.5296 GB, free: 134.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.636/3.448, allocations: 1.625 kB / 0.5296 GB, free: 134.9 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat