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.0009021/0.0009022, allocations: 96 kB / 16.95 MB, free: 6.469 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.001046/0.001046, allocations: 182.3 kB / 17.84 MB, free: 6.016 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.648/1.648, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004968/0.0004968, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09689/0.0974, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01547/0.1129, allocations: 13.91 MB / 342.4 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.1234, allocations: 5.037 MB / 347.4 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003121/0.1265, allocations: 83.62 kB / 347.5 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002996/0.1296, allocations: 0.8349 MB / 348.3 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004074/0.1337, allocations: 1.107 MB / 349.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002169/0.1359, allocations: 0.6588 MB / 350.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005684/0.1416, allocations: 3.826 MB / 353.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003525/0.1451, allocations: 2.524 MB / 356.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002466/0.1476, allocations: 1.303 MB / 357.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.1499, allocations: 1.735 MB / 359.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003812/0.1503, allocations: 208 kB / 359.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001128/0.1514, allocations: 415.7 kB / 360.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008481/0.1523, allocations: 0.8837 MB / 361 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001074/0.1534, allocations: 0.7614 MB / 361.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005294/0.1587, allocations: 5.567 MB / 367.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1587, allocations: 0 / 367.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1587, allocations: 0 / 367.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002017/0.1589, allocations: 0 / 367.3 MB, free: 12.96 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.009928/0.1689, allocations: 3.963 MB / 371.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1689, allocations: 8.031 kB / 371.3 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001297/0.1702, allocations: 493.3 kB / 371.7 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003122/0.1734, allocations: 0.6783 MB / 372.4 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004107/0.1775, allocations: 2.268 MB / 374.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.1777, allocations: 270.9 kB / 375 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005743/0.1783, allocations: 339.9 kB / 375.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00863/0.187, allocations: 4.441 MB / 379.7 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.577e-05/0.1871, allocations: 0 / 379.7 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003052/0.1874, allocations: 144 kB / 379.9 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/0.1876, allocations: 166.7 kB / 380 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2219/0.4095, allocations: 3.708 MB / 383.7 MB, free: 30.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0285/0.438, allocations: 14.55 MB / 398.3 MB, free: 27.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005121/0.4432, allocations: 5.351 MB / 403.6 MB, free: 22.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002337/0.4456, allocations: 1.281 MB / 404.9 MB, free: 22.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007163/0.4528, allocations: 3.814 MB / 408.7 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.4529, allocations: 42.75 kB / 408.8 MB, free: 19.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.617e-06/0.4529, allocations: 1.641 kB / 408.8 MB, free: 19.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.009508/0.4624, allocations: 5.507 MB / 414.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.4625, allocations: 68.72 kB / 414.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002804/0.4653, allocations: 2.09 MB / 416.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.4655, allocations: 45.7 kB / 416.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008311/0.4663, allocations: 1.656 MB / 418.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003183/0.4666, allocations: 460.5 kB / 418.6 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.962e-05/0.4667, allocations: 39.84 kB / 418.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.4668, allocations: 377.9 kB / 419 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009791/0.4678, allocations: 0.7105 MB / 419.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.469, allocations: 1.349 MB / 421.1 MB, free: 8.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.4701, allocations: 0.9478 MB / 422 MB, free: 7.762 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.4702, allocations: 8 kB / 422 MB, free: 7.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003384/0.4735, allocations: 2.512 MB / 424.5 MB, free: 5.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.4736, allocations: 16.06 kB / 424.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.4736, allocations: 20 kB / 424.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.474, allocations: 145 kB / 424.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.4755, allocations: 465.4 kB / 425.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/0.4774, allocations: 3.088 MB / 428.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.4792, allocations: 103.8 kB / 428.3 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.4793, allocations: 87.98 kB / 428.4 MB, free: 1.211 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * 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.001855/0.4812, allocations: 1.047 MB / 429.5 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/0.4816, allocations: 217.6 kB / 429.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.4853, allocations: 2.167 MB / 431.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.4853, allocations: 19.55 kB / 431.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4854, allocations: 4 kB / 431.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.4854, allocations: 7.969 kB / 431.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008752/0.4942, allocations: 5.163 MB / 437 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.4942, allocations: 4.031 kB / 437.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00098/0.4952, allocations: 222.2 kB / 437.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006743/0.4959, allocations: 280.5 kB / 437.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.27e-05/0.496, allocations: 28.12 kB / 437.6 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006173/0.5022, allocations: 7.115 MB / 444.7 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5022, allocations: 8.094 kB / 444.7 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005171/0.5074, allocations: 3.17 MB / 447.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.5086, allocations: 458.3 kB / 448.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002561/0.5089, allocations: 32 kB / 448.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008814/0.5098, allocations: 67.92 kB / 448.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.51, allocations: 104.3 kB / 448.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.41e-05/0.5101, allocations: 32 kB / 448.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002374/0.5125, allocations: 1.415 MB / 450 MB, free: 10.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5125, allocations: 0 / 450 MB, free: 10.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002355/0.5148, allocations: 0.5596 MB / 450.5 MB, free: 10.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (112): * Single equations (assignments): 108 * 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%) 5,(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.004967/0.5198, allocations: 3.785 MB / 454.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003239/0.5231, allocations: 2.08 MB / 456.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.5231, allocations: 4 kB / 456.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.5251, allocations: 1.377 MB / 457.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.5279, allocations: 0.5354 MB / 458.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03678/0.5647, allocations: 18.24 MB / 476.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002388/0.5671, allocations: 2.412 MB / 478.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001914/0.569, allocations: 498.5 kB / 479.4 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/0.5708, allocations: 1.304 MB / 480.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5708, allocations: 0 / 480.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08901/0.6598, allocations: 50.16 MB / 0.5185 GB, free: 8.691 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.66, allocations: 237.9 kB / 0.5187 GB, free: 8.449 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.947/3.607, allocations: 3.938 kB / 0.5187 GB, free: 8.445 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