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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008151/0.000815, allocations: 74.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.495e-05/2.497e-05, allocations: 7.938 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07951/0.07955, allocations: 47.56 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3146/0.3942, allocations: 117.1 MB / 487.2 MB, free: 8.805 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.3945, allocations: 86.64 kB / 487.3 MB, free: 8.762 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5436/0.9382, allocations: 169.4 MB / 0.6413 GB, free: 41.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.9382, allocations: 3.984 kB / 0.6413 GB, free: 41.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004544/0.9386, allocations: 175.8 kB / 0.6415 GB, free: 41.33 MB / 410.7 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.01676/0.9554, allocations: 6.679 MB / 0.648 GB, free: 34.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.9555, allocations: 8.031 kB / 0.648 GB, free: 34.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002334/0.9578, allocations: 0.9919 MB / 0.649 GB, free: 33.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007915/0.9657, allocations: 1.603 MB / 0.6505 GB, free: 31.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/0.9776, allocations: 5.952 MB / 0.6563 GB, free: 25.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003232/0.978, allocations: 0.542 MB / 0.6569 GB, free: 25.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001678/0.9797, allocations: 0.7068 MB / 0.6576 GB, free: 24.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/0.9947, allocations: 9.366 MB / 0.6667 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/0.9949, allocations: 15.89 kB / 0.6667 GB, free: 15.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006404/0.9955, allocations: 300 kB / 0.667 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002167/0.9957, allocations: 342.7 kB / 0.6673 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01272/1.008, allocations: 7.555 MB / 0.6747 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2874/1.296, allocations: 30.64 MB / 0.7046 GB, free: 49.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/1.308, allocations: 16.02 MB / 0.7203 GB, free: 37.49 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004951/1.313, allocations: 3.037 MB / 0.7233 GB, free: 37.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/1.326, allocations: 8.191 MB / 0.7313 GB, free: 36.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.258e-05/1.326, allocations: 69.91 kB / 0.7313 GB, free: 36.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 4.769e-06/1.326, allocations: 0 / 0.7313 GB, free: 36.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=292): time 0.0126/1.339, allocations: 8.403 MB / 0.7395 GB, free: 34.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/1.339, allocations: 82.83 kB / 0.7396 GB, free: 34.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004271/1.343, allocations: 3.201 MB / 0.7427 GB, free: 34.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002293/1.343, allocations: 72.05 kB / 0.7428 GB, free: 34.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/1.345, allocations: 3.192 MB / 0.7459 GB, free: 33.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006011/1.346, allocations: 0.9973 MB / 0.7469 GB, free: 32.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/1.346, allocations: 74.53 kB / 0.747 GB, free: 32.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/1.346, allocations: 458.6 kB / 0.7474 GB, free: 32.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0018/1.348, allocations: 1.398 MB / 0.7488 GB, free: 32.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/1.35, allocations: 2.526 MB / 0.7512 GB, free: 30.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002283/1.352, allocations: 1.907 MB / 0.7531 GB, free: 30.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/1.352, allocations: 10.88 kB / 0.7531 GB, free: 30.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.006264/1.358, allocations: 4.856 MB / 0.7578 GB, free: 30.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/1.358, allocations: 18.19 kB / 0.7579 GB, free: 30.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/1.358, allocations: 36.56 kB / 0.7579 GB, free: 30.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008663/1.359, allocations: 408.2 kB / 0.7583 GB, free: 30.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/1.362, allocations: 0.8793 MB / 0.7591 GB, free: 30.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004707/1.367, allocations: 7.327 MB / 0.7663 GB, free: 25.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003174/1.37, allocations: 185.5 kB / 0.7665 GB, free: 25.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003049/1.37, allocations: 163.5 kB / 0.7666 GB, free: 25.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 446 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,88.9%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005518/1.371, allocations: 331.5 kB / 0.767 GB, free: 24.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005466/1.372, allocations: 416.2 kB / 0.7673 GB, free: 24.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006942/1.379, allocations: 4.364 MB / 0.7716 GB, free: 24.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/1.379, allocations: 28.25 kB / 0.7716 GB, free: 24.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/1.379, allocations: 15.75 kB / 0.7717 GB, free: 24.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/1.379, allocations: 13.97 kB / 0.7717 GB, free: 24.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/1.394, allocations: 10.42 MB / 0.7818 GB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/1.394, allocations: 3.781 kB / 0.7818 GB, free: 20.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001838/1.396, allocations: 452.4 kB / 0.7823 GB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/1.398, allocations: 0.8797 MB / 0.7831 GB, free: 20.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/1.398, allocations: 74.23 kB / 0.7832 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.411, allocations: 16.26 MB / 0.7991 GB, free: 7.117 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.411, allocations: 13.11 kB / 0.7991 GB, free: 7.113 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00833/1.419, allocations: 6.733 MB / 0.8057 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001893/1.421, allocations: 0.8139 MB / 0.8065 GB, free: 3.023 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005379/1.421, allocations: 70.56 kB / 0.8065 GB, free: 2.977 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/1.423, allocations: 159.9 kB / 0.8067 GB, free: 2.938 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004246/1.424, allocations: 220.1 kB / 0.8069 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/1.424, allocations: 86.31 kB / 0.807 GB, free: 2.883 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003218/1.427, allocations: 2.419 MB / 0.8093 GB, free: 1.941 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.824e-06/1.427, allocations: 0 / 0.8093 GB, free: 1.941 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004234/1.431, allocations: 1.282 MB / 0.8106 GB, free: 1.809 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 215 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009134/1.44, allocations: 8.905 MB / 0.8193 GB, free: 12.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005428/1.446, allocations: 4.214 MB / 0.8234 GB, free: 10.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/1.446, allocations: 5.031 kB / 0.8234 GB, free: 10.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/1.45, allocations: 2.919 MB / 0.8263 GB, free: 8.707 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004484/1.454, allocations: 1.041 MB / 0.8273 GB, free: 7.898 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02169/1.476, allocations: 12.1 MB / 0.8391 GB, free: 13.26 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003965/1.48, allocations: 4.47 MB / 0.8434 GB, free: 9.914 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003311/1.483, allocations: 0.8856 MB / 0.8443 GB, free: 9.301 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00339/1.487, allocations: 2.75 MB / 0.847 GB, free: 6.746 MB / 458.7 MB Notification: Performance of SimCode: time 8.92e-07/1.487, allocations: 1.422 kB / 0.847 GB, free: 6.746 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3539/1.84, allocations: 109.1 MB / 0.9535 GB, free: 88.34 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/1.841, allocations: 211.3 kB / 0.9537 GB, free: 88.12 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.787/6.627, allocations: 0 / 0.9537 GB, free: 88.12 MB / 474.7 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) 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