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_Generator.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.002232/0.002232, allocations: 178.4 kB / 8.362 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.184/2.184, 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.001064/0.001064, allocations: 87.84 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.385e-05/2.384e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3332, allocations: 47.57 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2212/0.5545, allocations: 135 MB / 497.5 MB, free: 15.08 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.5548, allocations: 83.95 kB / 497.5 MB, free: 15 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7369/1.292, allocations: 129.5 MB / 0.6123 GB, free: 31.66 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.705e-06/1.292, allocations: 4 kB / 0.6123 GB, free: 31.66 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000635/1.292, allocations: 147.8 kB / 0.6125 GB, free: 31.51 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02291/1.315, allocations: 5.412 MB / 0.6177 GB, free: 26.03 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/1.315, allocations: 8.031 kB / 0.6178 GB, free: 26.02 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009344/1.325, allocations: 1.156 MB / 0.6189 GB, free: 24.86 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01916/1.344, allocations: 4.891 MB / 0.6237 GB, free: 19.89 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004021/1.344, allocations: 184 kB / 0.6238 GB, free: 19.71 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002265/1.347, allocations: 339.9 kB / 0.6242 GB, free: 19.38 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01702/1.364, allocations: 5.252 MB / 0.6293 GB, free: 14.12 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/1.387, allocations: 6.231 MB / 0.6354 GB, free: 7.711 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000329/1.387, allocations: 7.906 kB / 0.6354 GB, free: 7.703 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001911/1.389, allocations: 8 kB / 0.6354 GB, free: 7.695 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003122/1.389, allocations: 255.2 kB / 0.6356 GB, free: 7.445 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3765/1.766, allocations: 22.84 MB / 0.6579 GB, free: 55 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01174/1.778, allocations: 8.523 MB / 0.6663 GB, free: 49.24 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005524/1.783, allocations: 2.149 MB / 0.6684 GB, free: 49.21 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02255/1.806, allocations: 6.793 MB / 0.675 GB, free: 48.03 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.618e-05/1.806, allocations: 70.8 kB / 0.6751 GB, free: 47.99 MB / 411.1 MB Notification: Performance of pre-optimization done (n=241): time 6.422e-06/1.806, allocations: 0 / 0.6751 GB, free: 47.99 MB / 411.1 MB Notification: Performance of matching and sorting (n=292): time 0.03735/1.843, allocations: 10.29 MB / 0.6851 GB, free: 46.69 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/1.844, allocations: 86.67 kB / 0.6852 GB, free: 46.62 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006563/1.85, allocations: 2.39 MB / 0.6875 GB, free: 46.39 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006497/1.851, allocations: 25.7 kB / 0.6876 GB, free: 46.36 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002375/1.853, allocations: 2.533 MB / 0.69 GB, free: 45.32 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.855, allocations: 0.9615 MB / 0.691 GB, free: 44.68 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003712/1.855, allocations: 0 / 0.691 GB, free: 44.68 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000284/1.855, allocations: 455.2 kB / 0.6914 GB, free: 44.37 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004126/1.86, allocations: 1.416 MB / 0.6928 GB, free: 44.36 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005375/1.865, allocations: 2.573 MB / 0.6953 GB, free: 42.98 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006397/1.871, allocations: 2.029 MB / 0.6973 GB, free: 42.94 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.991e-05/1.872, allocations: 14.75 kB / 0.6973 GB, free: 42.94 MB / 411.1 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.01688/1.888, allocations: 4.953 MB / 0.7021 GB, free: 42.58 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.725e-05/1.889, allocations: 20.53 kB / 0.7021 GB, free: 42.58 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/1.889, allocations: 43.17 kB / 0.7022 GB, free: 42.58 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003809/1.893, allocations: 0.849 MB / 0.703 GB, free: 42.53 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006881/1.899, allocations: 0.8764 MB / 0.7039 GB, free: 42.53 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01623/1.916, allocations: 9.359 MB / 0.713 GB, free: 38.6 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005546/1.921, allocations: 167.5 kB / 0.7132 GB, free: 38.59 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00106/1.922, allocations: 168.1 kB / 0.7133 GB, free: 38.59 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009562/1.923, allocations: 216.1 kB / 0.7135 GB, free: 38.46 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01247/1.936, allocations: 4.167 MB / 0.7176 GB, free: 37.89 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/1.938, allocations: 347.5 kB / 0.7179 GB, free: 37.71 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/1.951, allocations: 4.419 MB / 0.7223 GB, free: 36.4 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.672e-05/1.951, allocations: 32 kB / 0.7223 GB, free: 36.4 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.927e-05/1.951, allocations: 6.781 kB / 0.7223 GB, free: 36.4 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.018e-05/1.951, allocations: 17.97 kB / 0.7223 GB, free: 36.4 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02746/1.979, allocations: 9.192 MB / 0.7313 GB, free: 32.49 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0107/1.99, allocations: 3.807 MB / 0.735 GB, free: 30.89 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004499/1.994, allocations: 0.5119 MB / 0.7355 GB, free: 30.88 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004316/1.999, allocations: 0.9603 MB / 0.7364 GB, free: 30.61 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006431/1.999, allocations: 36.05 kB / 0.7365 GB, free: 30.59 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0209/2.02, allocations: 14.21 MB / 0.7504 GB, free: 20.01 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.899e-06/2.02, allocations: 6.781 kB / 0.7504 GB, free: 20.01 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01723/2.038, allocations: 6.88 MB / 0.7571 GB, free: 16.5 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003116/2.041, allocations: 0.7312 MB / 0.7578 GB, free: 16.03 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001372/2.042, allocations: 18.34 kB / 0.7578 GB, free: 16.03 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00424/2.046, allocations: 155.4 kB / 0.758 GB, free: 16.03 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009783/2.047, allocations: 217.7 kB / 0.7582 GB, free: 15.99 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003242/2.048, allocations: 87.66 kB / 0.7583 GB, free: 15.97 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004767/2.053, allocations: 1.749 MB / 0.76 GB, free: 15.25 MB / 411.1 MB Notification: Performance of sort global known variables: time 9.02e-07/2.053, allocations: 0 / 0.76 GB, free: 15.25 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.007022/2.06, allocations: 1.032 MB / 0.761 GB, free: 14.73 MB / 411.1 MB 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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01802/2.078, allocations: 8.852 MB / 0.7696 GB, free: 6.504 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01138/2.089, allocations: 4.473 MB / 0.774 GB, free: 2.375 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/2.089, allocations: 3.062 kB / 0.774 GB, free: 2.375 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007659/2.097, allocations: 2.896 MB / 0.7768 GB, free: 15.81 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00607/2.103, allocations: 0.6158 MB / 0.7774 GB, free: 15.33 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03574/2.139, allocations: 9.597 MB / 0.7868 GB, free: 6.902 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007037/2.146, allocations: 3.55 MB / 0.7902 GB, free: 4.242 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006148/2.152, allocations: 2.234 MB / 0.7924 GB, free: 2.172 MB / 427.1 MB Notification: Performance of SimCode: time 2.044e-06/2.152, allocations: 0 / 0.7924 GB, free: 2.172 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.644/7.796, allocations: 237.7 MB / 1.025 GB, free: 107.2 MB / 475.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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_Generator_res.mat does not exist to compare? outputFormat=mat