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.0009548/0.0009548, allocations: 181.3 kB / 8.7 MB, free: 352 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.708/1.708, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 90.64 kB / 262.5 MB, free: 1.668 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.769e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.0877, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3754/0.4632, allocations: 121.9 MB / 485.1 MB, free: 6.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.4634, allocations: 90.12 kB / 485.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5813/1.045, allocations: 190.7 MB / 0.6601 GB, free: 23.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.045, allocations: 0 / 0.6601 GB, free: 23.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000727/1.045, allocations: 206.5 kB / 0.6603 GB, free: 23.36 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.02538/1.071, allocations: 7.907 MB / 0.668 GB, free: 15.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/1.071, allocations: 16.03 kB / 0.668 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.011/1.082, allocations: 1.897 MB / 0.6698 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01503/1.097, allocations: 7.037 MB / 0.6767 GB, free: 6.441 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003209/1.097, allocations: 284 kB / 0.677 GB, free: 6.164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/1.1, allocations: 0.5076 MB / 0.6775 GB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2739/1.373, allocations: 8.218 MB / 0.6855 GB, free: 32.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03461/1.408, allocations: 9.665 MB / 0.6949 GB, free: 31.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003765/1.409, allocations: 13.47 kB / 0.695 GB, free: 31.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002129/1.411, allocations: 6.656 kB / 0.695 GB, free: 31.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003383/1.411, allocations: 373.4 kB / 0.6953 GB, free: 31.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07205/1.483, allocations: 34.41 MB / 0.7289 GB, free: 25.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01496/1.498, allocations: 16.62 MB / 0.7452 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006852/1.505, allocations: 3.226 MB / 0.7483 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01994/1.525, allocations: 9.298 MB / 0.7574 GB, free: 25.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.339e-05/1.525, allocations: 64.39 kB / 0.7574 GB, free: 25.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=298): time 5.861e-06/1.525, allocations: 0 / 0.7574 GB, free: 25.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=350): time 0.02567/1.551, allocations: 12.14 MB / 0.7693 GB, free: 20.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/1.551, allocations: 88.33 kB / 0.7694 GB, free: 20.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006336/1.557, allocations: 3.154 MB / 0.7725 GB, free: 19.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006042/1.558, allocations: 25.7 kB / 0.7725 GB, free: 19.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/1.56, allocations: 3.901 MB / 0.7763 GB, free: 16.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/1.561, allocations: 1.148 MB / 0.7774 GB, free: 15.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003814/1.562, allocations: 0 / 0.7774 GB, free: 15.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002853/1.562, allocations: 480.6 kB / 0.7779 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/1.564, allocations: 1.643 MB / 0.7795 GB, free: 14.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003426/1.568, allocations: 3.052 MB / 0.7825 GB, free: 11.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004439/1.572, allocations: 2.544 MB / 0.7849 GB, free: 10.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.052e-05/1.572, allocations: 14.72 kB / 0.785 GB, free: 10.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=576) (initialization): time 0.01134/1.584, allocations: 5.949 MB / 0.7908 GB, free: 8.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.593e-05/1.584, allocations: 29.12 kB / 0.7908 GB, free: 8.676 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.827e-05/1.584, allocations: 46.56 kB / 0.7908 GB, free: 8.676 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001851/1.586, allocations: 0.7048 MB / 0.7915 GB, free: 8.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004259/1.59, allocations: 1.062 MB / 0.7926 GB, free: 8.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.6, allocations: 9.645 MB / 0.802 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004977/1.606, allocations: 168.9 kB / 0.8021 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.607, allocations: 202.8 kB / 0.8023 GB, free: 0.8477 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (523): * Single equations (assignments): 515 * 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,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001943/1.609, allocations: 238 kB / 0.8026 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01106/1.62, allocations: 4.761 MB / 0.8072 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001826/1.622, allocations: 443.5 kB / 0.8076 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.633, allocations: 5.035 MB / 0.8126 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.978e-05/1.633, allocations: 30.09 kB / 0.8126 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-05/1.633, allocations: 12.72 kB / 0.8126 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.47e-05/1.633, allocations: 15.75 kB / 0.8126 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02957/1.662, allocations: 11.31 MB / 0.8237 GB, free: 4.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.316e-05/1.662, allocations: 4 kB / 0.8237 GB, free: 4.953 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003225/1.666, allocations: 0.6178 MB / 0.8243 GB, free: 4.465 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/1.668, allocations: 0.8765 MB / 0.8251 GB, free: 3.738 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007311/1.669, allocations: 35.17 kB / 0.8252 GB, free: 3.711 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01582/1.685, allocations: 13.47 MB / 0.8383 GB, free: 6.746 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/1.685, allocations: 11.19 kB / 0.8383 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2855/1.97, allocations: 8.19 MB / 0.8463 GB, free: 71.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003271/1.974, allocations: 0.8953 MB / 0.8472 GB, free: 71.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001853/1.976, allocations: 19.44 kB / 0.8472 GB, free: 71.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003703/1.979, allocations: 159.5 kB / 0.8474 GB, free: 71.67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001076/1.98, allocations: 269.3 kB / 0.8476 GB, free: 71.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004697/1.981, allocations: 100.7 kB / 0.8477 GB, free: 71.67 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005901/1.987, allocations: 2.318 MB / 0.85 GB, free: 71.49 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.987, allocations: 2.906 kB / 0.85 GB, free: 71.49 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008867/1.996, allocations: 1.329 MB / 0.8513 GB, free: 71.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 266 * 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.01684/2.013, allocations: 10.02 MB / 0.8611 GB, free: 68.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008357/2.021, allocations: 5.007 MB / 0.866 GB, free: 67.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/2.021, allocations: 2.406 kB / 0.866 GB, free: 67.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005418/2.027, allocations: 3.119 MB / 0.869 GB, free: 67.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005671/2.032, allocations: 0.7642 MB / 0.8697 GB, free: 67.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03402/2.066, allocations: 13.81 MB / 0.8832 GB, free: 64.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007368/2.074, allocations: 5.214 MB / 0.8883 GB, free: 63.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004358/2.078, allocations: 0.997 MB / 0.8893 GB, free: 63.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004287/2.082, allocations: 3.282 MB / 0.8925 GB, free: 63.32 MB / 458.7 MB Notification: Performance of SimCode: time 7.41e-07/2.082, allocations: 0 / 0.8925 GB, free: 63.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1604/2.243, allocations: 106.3 MB / 0.9963 GB, free: 9.008 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/2.243, allocations: 177 kB / 0.9964 GB, free: 8.816 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.413/7.656, allocations: 0 / 0.9964 GB, free: 8.816 MB / 458.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