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.001387/0.001387, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.2 MB / 245 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008733/0.0008733, allocations: 102.9 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002363/0.0002362, allocations: 8 kB / 358 MB, free: 9.418 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2291, allocations: 51.47 MB / 409.5 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.5869, allocations: 126.7 MB / 0.5236 GB, free: 48.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.5872, allocations: 111.9 kB / 0.5238 GB, free: 48.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6665/1.254, allocations: 200.2 MB / 0.7192 GB, free: 44.11 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.254, allocations: 0 / 0.7192 GB, free: 44.11 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000627/1.254, allocations: 207.5 kB / 0.7194 GB, free: 44.09 MB / 458.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.02584/1.28, allocations: 8.816 MB / 0.728 GB, free: 40.98 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.785e-05/1.28, allocations: 8.094 kB / 0.728 GB, free: 40.98 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00433/1.285, allocations: 1.186 MB / 0.7292 GB, free: 40.89 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01216/1.297, allocations: 2.014 MB / 0.7312 GB, free: 40.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01767/1.315, allocations: 7.143 MB / 0.7381 GB, free: 39.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005928/1.315, allocations: 0.6375 MB / 0.7388 GB, free: 39.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002755/1.318, allocations: 0.8441 MB / 0.7396 GB, free: 39.33 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.026/1.344, allocations: 11.16 MB / 0.7505 GB, free: 38.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003146/1.344, allocations: 7.797 kB / 0.7505 GB, free: 38.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002113/1.347, allocations: 372.5 kB / 0.7508 GB, free: 38.42 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003269/1.347, allocations: 368.1 kB / 0.7512 GB, free: 38.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02171/1.369, allocations: 9.113 MB / 0.7601 GB, free: 38.31 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07089/1.439, allocations: 36.1 MB / 0.7953 GB, free: 20.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01438/1.454, allocations: 18.22 MB / 0.8131 GB, free: 20.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01867/1.473, allocations: 10.42 MB / 0.8233 GB, free: 13.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.38e-05/1.473, allocations: 68.22 kB / 0.8234 GB, free: 13.46 MB / 474.7 MB Notification: Performance of pre-optimization done (n=324): time 5.67e-06/1.473, allocations: 0 / 0.8234 GB, free: 13.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=378): time 0.03494/1.508, allocations: 16.19 MB / 0.8392 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/1.508, allocations: 90.36 kB / 0.8393 GB, free: 404 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006351/1.514, allocations: 3.879 MB / 0.8431 GB, free: 13.09 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007052/1.515, allocations: 89.7 kB / 0.8432 GB, free: 13 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003191/1.518, allocations: 3.844 MB / 0.8469 GB, free: 9.582 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001596/1.52, allocations: 1.289 MB / 0.8482 GB, free: 8.422 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/1.52, allocations: 88 kB / 0.8483 GB, free: 8.336 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002666/1.52, allocations: 491.2 kB / 0.8487 GB, free: 7.902 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003202/1.524, allocations: 1.96 MB / 0.8506 GB, free: 6.211 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003855/1.527, allocations: 3.359 MB / 0.8539 GB, free: 2.547 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003923/1.531, allocations: 2.543 MB / 0.8564 GB, free: 200 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.784e-05/1.531, allocations: 12 kB / 0.8564 GB, free: 188 kB / 490.7 MB Notification: Performance of matching and sorting (n=594) (initialization): time 0.2674/1.799, allocations: 6.628 MB / 0.8629 GB, free: 70.62 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/1.799, allocations: 23.53 kB / 0.8629 GB, free: 70.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.545e-05/1.799, allocations: 48.89 kB / 0.863 GB, free: 70.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001993/1.801, allocations: 0.7369 MB / 0.8637 GB, free: 70.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004767/1.806, allocations: 1.082 MB / 0.8647 GB, free: 70.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008676/1.814, allocations: 10.34 MB / 0.8748 GB, free: 65.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/1.819, allocations: 253.1 kB / 0.8751 GB, free: 65.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006719/1.82, allocations: 204.2 kB / 0.8753 GB, free: 65.29 MB / 490.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 (541): * Single equations (assignments): 533 * 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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004512/1.824, allocations: 2.545 MB / 0.8777 GB, free: 65.17 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/1.825, allocations: 495.3 kB / 0.8782 GB, free: 65.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008693/1.834, allocations: 5.65 MB / 0.8837 GB, free: 64.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/1.834, allocations: 37 kB / 0.8838 GB, free: 64.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/1.834, allocations: 9.312 kB / 0.8838 GB, free: 64.73 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.502e-05/1.834, allocations: 23.03 kB / 0.8838 GB, free: 64.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02206/1.856, allocations: 13.4 MB / 0.8969 GB, free: 63.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-05/1.856, allocations: 5.719 kB / 0.8969 GB, free: 63.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/1.859, allocations: 0.6539 MB / 0.8975 GB, free: 63.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/1.861, allocations: 0.896 MB / 0.8984 GB, free: 63.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002988/1.861, allocations: 90.36 kB / 0.8985 GB, free: 63.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/1.873, allocations: 14.31 MB / 0.9125 GB, free: 56.94 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.873, allocations: 9.312 kB / 0.9125 GB, free: 56.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/1.887, allocations: 9.085 MB / 0.9214 GB, free: 55.03 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002685/1.89, allocations: 0.9881 MB / 0.9223 GB, free: 54.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000978/1.891, allocations: 83.44 kB / 0.9224 GB, free: 54.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00273/1.894, allocations: 220.5 kB / 0.9226 GB, free: 54.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005761/1.894, allocations: 284.6 kB / 0.9229 GB, free: 54.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002273/1.894, allocations: 107.1 kB / 0.923 GB, free: 54.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004671/1.899, allocations: 2.946 MB / 0.9259 GB, free: 53.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.899, allocations: 0 / 0.9259 GB, free: 53.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006355/1.906, allocations: 1.575 MB / 0.9274 GB, free: 52.95 MB / 490.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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (300): * Single equations (assignments): 293 * 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.01271/1.918, allocations: 11.27 MB / 0.9384 GB, free: 46.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008067/1.926, allocations: 5.804 MB / 0.9441 GB, free: 44.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.926, allocations: 3.625 kB / 0.9441 GB, free: 44.02 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004814/1.931, allocations: 3.566 MB / 0.9476 GB, free: 42.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004928/1.936, allocations: 1.076 MB / 0.9486 GB, free: 41.97 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1016/2.038, allocations: 78.82 MB / 1.026 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005379/2.043, allocations: 5.239 MB / 1.031 GB, free: 8.918 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004366/2.048, allocations: 1.079 MB / 1.032 GB, free: 8.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004378/2.052, allocations: 3.322 MB / 1.035 GB, free: 5.086 MB / 0.5105 GB Notification: Performance of SimCode: time 9.72e-07/2.052, allocations: 3.094 kB / 1.035 GB, free: 5.086 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4206/2.473, allocations: 126.2 MB / 1.158 GB, free: 66.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/2.473, allocations: 285.5 kB / 1.158 GB, free: 65.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.605/8.077, allocations: 7.891 kB / 1.158 GB, free: 65.79 MB / 0.5105 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