Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_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.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_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.0009146/0.0009146, allocations: 181.7 kB / 17.02 MB, free: 5.121 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.187/1.187, allocations: 205.4 MB / 223.1 MB, free: 9.137 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.0008702/0.0008701, allocations: 100.1 kB / 271.5 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002456, allocations: 8 kB / 328.4 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1885, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1203/0.3089, allocations: 122.4 MB / 498.4 MB, free: 6.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.3092, allocations: 87.95 kB / 498.5 MB, free: 6.062 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7069/1.016, allocations: 193 MB / 0.6753 GB, free: 28.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.426e-06/1.016, allocations: 0 / 0.6753 GB, free: 28.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008373/1.017, allocations: 209.9 kB / 0.6755 GB, free: 28.03 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02847/1.046, allocations: 8.731 MB / 0.684 GB, free: 25.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/1.046, allocations: 9.281 kB / 0.684 GB, free: 25.03 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004734/1.05, allocations: 1.189 MB / 0.6852 GB, free: 24.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01166/1.062, allocations: 1.917 MB / 0.687 GB, free: 24.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01912/1.081, allocations: 7.091 MB / 0.694 GB, free: 23.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006649/1.082, allocations: 0.6378 MB / 0.6946 GB, free: 23.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003473/1.085, allocations: 0.8445 MB / 0.6954 GB, free: 23.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02915/1.115, allocations: 11.17 MB / 0.7063 GB, free: 22.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002844/1.115, allocations: 14.53 kB / 0.7063 GB, free: 22.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001804/1.117, allocations: 371 kB / 0.7067 GB, free: 22.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002692/1.117, allocations: 367.1 kB / 0.707 GB, free: 22.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01942/1.136, allocations: 9.104 MB / 0.7159 GB, free: 22.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0652/1.202, allocations: 35.96 MB / 0.7511 GB, free: 6.539 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01672/1.218, allocations: 17.04 MB / 0.7677 GB, free: 7.629 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02262/1.241, allocations: 9.425 MB / 0.7769 GB, free: 2.344 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.916e-05/1.241, allocations: 68.39 kB / 0.777 GB, free: 2.277 MB / 426.7 MB Notification: Performance of pre-optimization done (n=330): time 5.561e-06/1.241, allocations: 4 kB / 0.777 GB, free: 2.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=384): time 0.04058/1.282, allocations: 16.81 MB / 0.7934 GB, free: 4.926 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/1.282, allocations: 94.41 kB / 0.7935 GB, free: 4.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006091/1.288, allocations: 3.856 MB / 0.7972 GB, free: 1.539 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005065/1.289, allocations: 89.7 kB / 0.7973 GB, free: 1.445 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002378/1.291, allocations: 3.834 MB / 0.8011 GB, free: 14.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/1.292, allocations: 1.296 MB / 0.8023 GB, free: 12.87 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/1.292, allocations: 96 kB / 0.8024 GB, free: 12.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002441/1.293, allocations: 488.4 kB / 0.8029 GB, free: 12.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003091/1.296, allocations: 1.999 MB / 0.8048 GB, free: 10.62 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003807/1.3, allocations: 3.393 MB / 0.8082 GB, free: 6.945 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003904/1.303, allocations: 2.578 MB / 0.8107 GB, free: 4.598 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.717e-05/1.303, allocations: 12 kB / 0.8107 GB, free: 4.586 MB / 458.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.2467/1.55, allocations: 6.898 MB / 0.8174 GB, free: 68.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/1.55, allocations: 24.62 kB / 0.8174 GB, free: 68.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.156e-05/1.55, allocations: 44 kB / 0.8175 GB, free: 68.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/1.552, allocations: 0.7618 MB / 0.8182 GB, free: 68.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004573/1.557, allocations: 1.107 MB / 0.8193 GB, free: 68.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009593/1.567, allocations: 10.53 MB / 0.8296 GB, free: 62.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004736/1.571, allocations: 263.5 kB / 0.8298 GB, free: 62.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008171/1.572, allocations: 205.2 kB / 0.83 GB, free: 62.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * 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 (544): * Single equations (assignments): 536 * 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%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005367/1.578, allocations: 2.54 MB / 0.8325 GB, free: 62.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.579, allocations: 495.1 kB / 0.833 GB, free: 62.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009307/1.588, allocations: 5.761 MB / 0.8386 GB, free: 62.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/1.588, allocations: 36.5 kB / 0.8387 GB, free: 62.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/1.588, allocations: 12.72 kB / 0.8387 GB, free: 62.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.038e-05/1.588, allocations: 17.95 kB / 0.8387 GB, free: 62.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02472/1.613, allocations: 13.89 MB / 0.8522 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.334e-05/1.613, allocations: 8.719 kB / 0.8523 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00282/1.616, allocations: 0.671 MB / 0.8529 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/1.618, allocations: 0.896 MB / 0.8538 GB, free: 61.03 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003274/1.619, allocations: 98.17 kB / 0.8539 GB, free: 61.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.631, allocations: 14.3 MB / 0.8678 GB, free: 54.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/1.631, allocations: 9 kB / 0.8679 GB, free: 54.39 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/1.643, allocations: 9.186 MB / 0.8768 GB, free: 52.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003502/1.647, allocations: 0.9937 MB / 0.8778 GB, free: 52.42 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001512/1.648, allocations: 88.31 kB / 0.8779 GB, free: 52.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002989/1.651, allocations: 214.6 kB / 0.8781 GB, free: 52.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006617/1.652, allocations: 296.1 kB / 0.8784 GB, free: 52.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000247/1.652, allocations: 109 kB / 0.8785 GB, free: 52.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004598/1.657, allocations: 2.925 MB / 0.8813 GB, free: 51.88 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.657, allocations: 0 / 0.8813 GB, free: 51.88 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006059/1.663, allocations: 1.561 MB / 0.8828 GB, free: 51.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (306): * Single equations (assignments): 299 * 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%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01332/1.676, allocations: 11.36 MB / 0.8939 GB, free: 45.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008432/1.685, allocations: 5.895 MB / 0.8997 GB, free: 42.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/1.685, allocations: 3.25 kB / 0.8997 GB, free: 42.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005298/1.69, allocations: 3.615 MB / 0.9032 GB, free: 40.94 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005841/1.696, allocations: 1.058 MB / 0.9043 GB, free: 40.64 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1033/1.799, allocations: 78.23 MB / 0.9807 GB, free: 8.641 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009585/1.809, allocations: 5.238 MB / 0.9858 GB, free: 4.766 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005377/1.814, allocations: 1.078 MB / 0.9868 GB, free: 4.027 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006818/1.821, allocations: 3.272 MB / 0.99 GB, free: 0.9844 MB / 490.7 MB Notification: Performance of SimCode: time 1.563e-06/1.821, allocations: 0 / 0.99 GB, free: 0.9844 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4377/2.259, allocations: 125.7 MB / 1.113 GB, free: 49.13 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/2.259, allocations: 241.3 kB / 1.113 GB, free: 48.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.322/7.581, allocations: 0 / 1.113 GB, free: 48.88 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat