Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",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.002246/0.002246, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.192/2.192, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001157/0.001157, allocations: 90.75 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.927e-05, allocations: 11.92 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3396, allocations: 47.56 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.5385, allocations: 118.8 MB / 481.2 MB, free: 15.47 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.5389, allocations: 83.95 kB / 481.3 MB, free: 15.39 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8544/1.393, allocations: 158.5 MB / 0.6247 GB, free: 16.48 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.054e-06/1.393, allocations: 4 kB / 0.6247 GB, free: 16.47 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004395/1.394, allocations: 99.88 kB / 0.6248 GB, free: 16.38 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01589/1.41, allocations: 3.907 MB / 0.6287 GB, free: 12.4 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/1.41, allocations: 8.031 kB / 0.6287 GB, free: 12.39 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007634/1.417, allocations: 0.9197 MB / 0.6296 GB, free: 11.46 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/1.432, allocations: 3.802 MB / 0.6333 GB, free: 7.605 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003365/1.432, allocations: 128 kB / 0.6334 GB, free: 7.48 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/1.434, allocations: 240.2 kB / 0.6336 GB, free: 7.246 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01215/1.446, allocations: 3.784 MB / 0.6373 GB, free: 3.453 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01637/1.463, allocations: 4.441 MB / 0.6417 GB, free: 14.84 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002228/1.463, allocations: 4 kB / 0.6417 GB, free: 14.84 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001308/1.464, allocations: 0 / 0.6417 GB, free: 14.84 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002832/1.464, allocations: 180 kB / 0.6418 GB, free: 14.66 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3428/1.807, allocations: 16.18 MB / 0.6576 GB, free: 54.88 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0095/1.817, allocations: 8.191 MB / 0.6656 GB, free: 48.55 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003905/1.821, allocations: 1.552 MB / 0.6671 GB, free: 48.54 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01247/1.833, allocations: 4.719 MB / 0.6718 GB, free: 47.45 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/1.833, allocations: 51.06 kB / 0.6718 GB, free: 47.41 MB / 411.1 MB Notification: Performance of pre-optimization done (n=152): time 4.628e-06/1.833, allocations: 1.594 kB / 0.6718 GB, free: 47.41 MB / 411.1 MB Notification: Performance of matching and sorting (n=155): time 0.01368/1.847, allocations: 4.717 MB / 0.6764 GB, free: 46.41 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/1.847, allocations: 67.66 kB / 0.6765 GB, free: 46.35 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003461/1.851, allocations: 1.645 MB / 0.6781 GB, free: 46.14 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003563/1.851, allocations: 25.7 kB / 0.6781 GB, free: 46.11 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/1.852, allocations: 1.777 MB / 0.6798 GB, free: 45.39 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007323/1.853, allocations: 0.5213 MB / 0.6804 GB, free: 45.11 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/1.853, allocations: 0 / 0.6804 GB, free: 45.11 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/1.854, allocations: 390.7 kB / 0.6807 GB, free: 44.8 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/1.855, allocations: 0.7157 MB / 0.6814 GB, free: 44.79 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002296/1.858, allocations: 1.378 MB / 0.6828 GB, free: 43.97 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/1.861, allocations: 1.134 MB / 0.6839 GB, free: 43.95 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.353e-05/1.861, allocations: 11.34 kB / 0.6839 GB, free: 43.95 MB / 411.1 MB Notification: Performance of matching and sorting (n=267) (initialization): time 0.006697/1.868, allocations: 2.439 MB / 0.6863 GB, free: 43.72 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.818e-05/1.868, allocations: 21.08 kB / 0.6863 GB, free: 43.72 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.516e-05/1.868, allocations: 22.47 kB / 0.6863 GB, free: 43.72 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004174/1.868, allocations: 127.7 kB / 0.6864 GB, free: 43.7 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003915/1.872, allocations: 0.5338 MB / 0.687 GB, free: 43.7 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/1.874, allocations: 1.733 MB / 0.6886 GB, free: 42.43 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002949/1.877, allocations: 74.08 kB / 0.6887 GB, free: 42.42 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004703/1.878, allocations: 97.31 kB / 0.6888 GB, free: 42.42 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004967/1.878, allocations: 173.6 kB / 0.689 GB, free: 42.3 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006095/1.884, allocations: 2.136 MB / 0.6911 GB, free: 41.9 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007633/1.885, allocations: 222.1 kB / 0.6913 GB, free: 41.79 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006502/1.892, allocations: 2.266 MB / 0.6935 GB, free: 41.45 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/1.892, allocations: 15.44 kB / 0.6935 GB, free: 41.45 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.892, allocations: 4.594 kB / 0.6935 GB, free: 41.45 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/1.892, allocations: 7.406 kB / 0.6935 GB, free: 41.45 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/1.906, allocations: 5.042 MB / 0.6984 GB, free: 40.82 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/1.906, allocations: 3.812 kB / 0.6984 GB, free: 40.82 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003496/1.91, allocations: 286.9 kB / 0.6987 GB, free: 40.82 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001862/1.912, allocations: 305.8 kB / 0.699 GB, free: 40.8 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/1.912, allocations: 24.14 kB / 0.699 GB, free: 40.79 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007977/1.92, allocations: 6.046 MB / 0.7049 GB, free: 36.94 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.92, allocations: 1.75 kB / 0.7049 GB, free: 36.94 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008163/1.928, allocations: 3.415 MB / 0.7083 GB, free: 36.18 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/1.93, allocations: 468.1 kB / 0.7087 GB, free: 35.98 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004476/1.931, allocations: 7.375 kB / 0.7087 GB, free: 35.98 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/1.933, allocations: 72.2 kB / 0.7088 GB, free: 35.98 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/1.933, allocations: 117.2 kB / 0.7089 GB, free: 35.97 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/1.933, allocations: 47.12 kB / 0.7089 GB, free: 35.97 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.002972/1.936, allocations: 1.228 MB / 0.7101 GB, free: 35.83 MB / 411.1 MB Notification: Performance of sort global known variables: time 8.32e-07/1.936, allocations: 0 / 0.7101 GB, free: 35.83 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.003928/1.94, allocations: 0.6104 MB / 0.7107 GB, free: 35.83 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008572/1.949, allocations: 4.681 MB / 0.7153 GB, free: 34.13 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.004233/1.953, allocations: 1.968 MB / 0.7172 GB, free: 33.91 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.953, allocations: 0 / 0.7172 GB, free: 33.91 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002868/1.956, allocations: 1.321 MB / 0.7185 GB, free: 33.57 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/1.959, allocations: 429.6 kB / 0.7189 GB, free: 33.56 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01807/1.978, allocations: 6.242 MB / 0.725 GB, free: 32.13 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003337/1.981, allocations: 2.665 MB / 0.7276 GB, free: 31.36 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003188/1.984, allocations: 1.483 MB / 0.7291 GB, free: 30.22 MB / 411.1 MB Notification: Performance of SimCode: time 2.916e-06/1.984, allocations: 0 / 0.7291 GB, free: 30.22 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.224/6.209, allocations: 108.9 MB / 0.8354 GB, free: 69.9 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat