Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",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.0009186/0.0009188, allocations: 95.41 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.001007/0.001007, allocations: 181.2 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.448/1.448, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004602/0.0004602, allocations: 8 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1097, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02319/0.133, allocations: 20.25 MB / 348.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.1481, allocations: 6.87 MB / 355.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005161/0.1533, allocations: 139.4 kB / 355.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005341/0.1586, allocations: 1.274 MB / 357 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008456/0.1671, allocations: 2.064 MB / 359 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004504/0.1717, allocations: 1.002 MB / 360 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01242/0.1841, allocations: 5.85 MB / 365.9 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01065/0.1948, allocations: 5.093 MB / 371 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005275/0.2001, allocations: 2.662 MB / 373.6 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00641/0.2066, allocations: 3.225 MB / 376.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002268/0.2089, allocations: 459.9 kB / 377.3 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.2122, allocations: 0.6208 MB / 377.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003105/0.2153, allocations: 1.62 MB / 379.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2027/0.418, allocations: 1.6 MB / 381.2 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01678/0.4348, allocations: 11.98 MB / 393.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4349, allocations: 3.219 kB / 393.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.4349, allocations: 1.219 kB / 393.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006582/0.4355, allocations: 3.469 kB / 393.1 MB, free: 15.43 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02822/0.4638, allocations: 7.781 MB / 400.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.4638, allocations: 9.562 kB / 400.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004855/0.4687, allocations: 0.9894 MB / 401.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.4804, allocations: 1.749 MB / 403.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.4922, allocations: 4.565 MB / 408.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005623/0.4928, allocations: 0.5364 MB / 408.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003896/0.4967, allocations: 0.7096 MB / 409.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02932/0.5261, allocations: 9.67 MB / 419.1 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002122/0.5263, allocations: 7.344 kB / 419.2 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00166/0.528, allocations: 299.4 kB / 419.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002865/0.5283, allocations: 354.2 kB / 419.8 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02017/0.5484, allocations: 8.252 MB / 428 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06594/0.6144, allocations: 30.5 MB / 458.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01628/0.6307, allocations: 16.05 MB / 474.6 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01439/0.6452, allocations: 6.81 MB / 481.4 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.324e-05/0.6453, allocations: 60.95 kB / 481.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=303): time 5.02e-06/0.6453, allocations: 4 kB / 481.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=313): time 0.02983/0.6751, allocations: 12.55 MB / 494 MB, free: 13.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/0.6752, allocations: 81.88 kB / 494.1 MB, free: 13.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006323/0.6816, allocations: 3.47 MB / 497.6 MB, free: 9.902 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006889/0.6823, allocations: 81.64 kB / 497.7 MB, free: 9.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002905/0.6852, allocations: 3.158 MB / 0.4891 GB, free: 6.633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001644/0.6869, allocations: 1.072 MB / 0.4901 GB, free: 5.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002666/0.6871, allocations: 76 kB / 0.4902 GB, free: 5.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003603/0.6875, allocations: 460.8 kB / 0.4906 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002986/0.6905, allocations: 1.557 MB / 0.4922 GB, free: 3.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003489/0.694, allocations: 2.66 MB / 0.4948 GB, free: 372 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003194/0.6972, allocations: 2.05 MB / 0.4968 GB, free: 14.33 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.709e-05/0.6973, allocations: 8 kB / 0.4968 GB, free: 14.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=493) (initialization): time 0.008756/0.706, allocations: 5.208 MB / 0.5019 GB, free: 9.258 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/0.7061, allocations: 20 kB / 0.5019 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.888e-05/0.7062, allocations: 36 kB / 0.5019 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.7072, allocations: 448.6 kB / 0.5023 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003293/0.7105, allocations: 0.9021 MB / 0.5032 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007137/0.7176, allocations: 7.733 MB / 0.5108 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003509/0.7212, allocations: 175.9 kB / 0.5109 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003509/0.7215, allocations: 168 kB / 0.5111 GB, free: 15.36 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 156 * 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 (465): * Single equations (assignments): 459 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004959/0.7265, allocations: 2.149 MB / 0.5132 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/0.7276, allocations: 399.1 kB / 0.5136 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008445/0.7361, allocations: 4.749 MB / 0.5182 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.3e-05/0.7361, allocations: 28 kB / 0.5182 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-05/0.7361, allocations: 18.36 kB / 0.5183 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/0.7362, allocations: 15.95 kB / 0.5183 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01953/0.7557, allocations: 11.24 MB / 0.5292 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.63e-05/0.7557, allocations: 12 kB / 0.5293 GB, free: 12.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/0.7578, allocations: 496.9 kB / 0.5297 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002075/0.7599, allocations: 0.8532 MB / 0.5306 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002217/0.7601, allocations: 83.97 kB / 0.5306 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2321/0.9922, allocations: 16.4 MB / 0.5467 GB, free: 152.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.9923, allocations: 12.59 kB / 0.5467 GB, free: 152.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01079/1.003, allocations: 7.32 MB / 0.5538 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002625/1.006, allocations: 0.8097 MB / 0.5546 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001061/1.007, allocations: 84.81 kB / 0.5547 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/1.009, allocations: 154.8 kB / 0.5548 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004815/1.009, allocations: 238.7 kB / 0.5551 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.01, allocations: 93.94 kB / 0.5552 GB, free: 149 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003858/1.014, allocations: 2.326 MB / 0.5574 GB, free: 148.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.014, allocations: 3.969 kB / 0.5574 GB, free: 148.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006705/1.02, allocations: 1.228 MB / 0.5586 GB, free: 148.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (243): * Single equations (assignments): 236 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01118/1.031, allocations: 9.212 MB / 0.5676 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006291/1.038, allocations: 4.562 MB / 0.5721 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.038, allocations: 4 kB / 0.5721 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004087/1.042, allocations: 3.104 MB / 0.5751 GB, free: 137.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005103/1.047, allocations: 1.04 MB / 0.5761 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09307/1.14, allocations: 61.28 MB / 0.636 GB, free: 74.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006447/1.147, allocations: 4.484 MB / 0.6404 GB, free: 70.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003545/1.15, allocations: 0.9061 MB / 0.6412 GB, free: 69.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003382/1.154, allocations: 2.714 MB / 0.6439 GB, free: 66.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/1.154, allocations: 0 / 0.6439 GB, free: 66.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3405/1.494, allocations: 101.4 MB / 0.7429 GB, free: 133.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/1.494, allocations: 241.3 kB / 0.7431 GB, free: 132.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.864/5.359, allocations: 0 / 0.7431 GB, free: 132.8 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat