Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009021/0.0009022, allocations: 87.06 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.125e-05, allocations: 7.984 kB / 350.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 51.49 MB / 402.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3624/0.4643, allocations: 126.6 MB / 0.5164 GB, free: 11.6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.4647, allocations: 99.86 kB / 0.5165 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7794/1.244, allocations: 200.2 MB / 0.712 GB, free: 26.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.353e-06/1.244, allocations: 4 kB / 0.712 GB, free: 26.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000936/1.245, allocations: 207.8 kB / 0.7122 GB, free: 26.25 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02786/1.273, allocations: 7.975 MB / 0.72 GB, free: 18.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/1.273, allocations: 8.031 kB / 0.72 GB, free: 18.17 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005553/1.279, allocations: 1.169 MB / 0.7212 GB, free: 16.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01269/1.291, allocations: 2.01 MB / 0.7231 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01952/1.311, allocations: 7.089 MB / 0.7301 GB, free: 7.809 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006742/1.312, allocations: 0.6382 MB / 0.7307 GB, free: 7.168 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003334/1.315, allocations: 0.8474 MB / 0.7315 GB, free: 6.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6056/1.921, allocations: 10.92 MB / 0.7422 GB, free: 28.54 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005985/1.921, allocations: 3.656 kB / 0.7422 GB, free: 28.54 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003124/1.924, allocations: 362.4 kB / 0.7425 GB, free: 28.54 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004081/1.925, allocations: 378.2 kB / 0.7429 GB, free: 28.52 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02358/1.948, allocations: 8.751 MB / 0.7514 GB, free: 28.45 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07526/2.024, allocations: 36.21 MB / 0.7868 GB, free: 21.71 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01887/2.043, allocations: 17.96 MB / 0.8043 GB, free: 24.03 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01073/2.053, allocations: 4.664 MB / 0.8089 GB, free: 23.96 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02411/2.078, allocations: 11.52 MB / 0.8201 GB, free: 17.74 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/2.078, allocations: 65.95 kB / 0.8202 GB, free: 17.68 MB / 458.8 MB Notification: Performance of pre-optimization done (n=298): time 5.58e-06/2.078, allocations: 0 / 0.8202 GB, free: 17.68 MB / 458.8 MB Notification: Performance of matching and sorting (n=350): time 0.02694/2.105, allocations: 12.01 MB / 0.8319 GB, free: 12.36 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/2.105, allocations: 91.45 kB / 0.832 GB, free: 12.29 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00931/2.114, allocations: 3.852 MB / 0.8358 GB, free: 10.82 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007606/2.115, allocations: 80.61 kB / 0.8358 GB, free: 10.75 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003108/2.118, allocations: 3.9 MB / 0.8397 GB, free: 7.801 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/2.119, allocations: 1.19 MB / 0.8408 GB, free: 6.879 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003732/2.12, allocations: 92.34 kB / 0.8409 GB, free: 6.809 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003294/2.12, allocations: 481.5 kB / 0.8414 GB, free: 6.426 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/2.123, allocations: 1.783 MB / 0.8431 GB, free: 5.684 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004094/2.127, allocations: 3.219 MB / 0.8462 GB, free: 3.133 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003961/2.131, allocations: 2.376 MB / 0.8486 GB, free: 2.164 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-05/2.131, allocations: 14.36 kB / 0.8486 GB, free: 2.16 MB / 458.8 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01251/2.144, allocations: 6.458 MB / 0.8549 GB, free: 15.75 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.073e-05/2.144, allocations: 25.09 kB / 0.8549 GB, free: 15.75 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.575e-05/2.144, allocations: 47.34 kB / 0.855 GB, free: 15.75 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00244/2.147, allocations: 0.8881 MB / 0.8558 GB, free: 15.47 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004365/2.151, allocations: 1.034 MB / 0.8568 GB, free: 15.43 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/2.164, allocations: 11.4 MB / 0.868 GB, free: 7.035 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005363/2.17, allocations: 257.5 kB / 0.8682 GB, free: 6.945 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/2.171, allocations: 199.2 kB / 0.8684 GB, free: 6.91 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (516): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 13,(1,100.0%) 8,(2,100.0%) 13,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001015/2.172, allocations: 385.6 kB / 0.8688 GB, free: 6.645 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001625/2.174, allocations: 497.8 kB / 0.8692 GB, free: 6.391 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/2.185, allocations: 5.409 MB / 0.8745 GB, free: 4.016 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/2.185, allocations: 36.48 kB / 0.8746 GB, free: 4.016 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/2.185, allocations: 14.28 kB / 0.8746 GB, free: 4.016 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.447e-05/2.185, allocations: 15.56 kB / 0.8746 GB, free: 4.016 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02753/2.213, allocations: 13.03 MB / 0.8873 GB, free: 14.07 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.99e-05/2.213, allocations: 4 kB / 0.8873 GB, free: 14.06 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002945/2.216, allocations: 0.5994 MB / 0.8879 GB, free: 13.59 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003045/2.219, allocations: 1.063 MB / 0.8889 GB, free: 12.72 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006503/2.22, allocations: 82.61 kB / 0.889 GB, free: 12.64 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01857/2.238, allocations: 15.23 MB / 0.9039 GB, free: 14.02 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/2.238, allocations: 9.594 kB / 0.9039 GB, free: 14.01 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/2.254, allocations: 8.455 MB / 0.9122 GB, free: 5.98 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00357/2.258, allocations: 0.9725 MB / 0.9131 GB, free: 5.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001578/2.259, allocations: 75.95 kB / 0.9132 GB, free: 5.016 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003676/2.263, allocations: 211.7 kB / 0.9134 GB, free: 4.852 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00094/2.264, allocations: 261.7 kB / 0.9136 GB, free: 4.691 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003545/2.264, allocations: 103.3 kB / 0.9137 GB, free: 4.598 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006508/2.271, allocations: 2.914 MB / 0.9166 GB, free: 1.969 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.81e-07/2.271, allocations: 0 / 0.9166 GB, free: 1.969 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.008069/2.279, allocations: 1.563 MB / 0.9181 GB, free: 432 kB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3399/2.619, allocations: 10.5 MB / 0.9284 GB, free: 85.37 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.009253/2.628, allocations: 5.46 MB / 0.9337 GB, free: 84.56 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/2.628, allocations: 0 / 0.9337 GB, free: 84.56 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.005559/2.634, allocations: 3.31 MB / 0.9369 GB, free: 83.88 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006752/2.64, allocations: 1.078 MB / 0.938 GB, free: 83.85 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04275/2.683, allocations: 14.35 MB / 0.952 GB, free: 81.07 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01069/2.694, allocations: 5.222 MB / 0.9571 GB, free: 80.16 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.006224/2.7, allocations: 1.05 MB / 0.9581 GB, free: 80.02 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006603/2.707, allocations: 3.294 MB / 0.9613 GB, free: 80.02 MB / 0.4949 GB Notification: Performance of SimCode: time 1.683e-06/2.707, allocations: 0 / 0.9613 GB, free: 80.02 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1931/2.9, allocations: 127.5 MB / 1.086 GB, free: 14.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/2.9, allocations: 254.5 kB / 1.086 GB, free: 13.86 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.462/9.362, allocations: 4 kB / 1.086 GB, free: 13.86 MB / 0.4949 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat does not exist to compare? outputFormat=mat