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.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 96.5 kB / 16.95 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 183.5 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004251/0.0004252, allocations: 16 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.09339, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02221/0.1156, allocations: 21.23 MB / 349.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.1293, allocations: 6.699 MB / 356.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004431/0.1338, allocations: 119.6 kB / 356.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004719/0.1386, allocations: 1.169 MB / 357.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006685/0.1453, allocations: 1.891 MB / 359.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003373/0.1487, allocations: 0.9708 MB / 360.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009947/0.1586, allocations: 7.196 MB / 367.7 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006315/0.165, allocations: 3.666 MB / 371.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005052/0.1701, allocations: 2.288 MB / 373.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007739/0.1779, allocations: 3.031 MB / 376.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002315/0.1802, allocations: 364 kB / 377.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003662/0.1839, allocations: 0.7143 MB / 377.8 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002262/0.1862, allocations: 1.499 MB / 379.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.168/0.3542, allocations: 1.276 MB / 380.6 MB, free: 18.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.3668, allocations: 9.254 MB / 389.8 MB, free: 17.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3668, allocations: 0 / 389.8 MB, free: 17.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.676e-06/0.3669, allocations: 0 / 389.8 MB, free: 17.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004512/0.3673, allocations: 0 / 389.8 MB, free: 17.34 MB / 318.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.01983/0.3871, allocations: 6.305 MB / 396.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3872, allocations: 9.219 kB / 396.1 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002954/0.3902, allocations: 0.7697 MB / 396.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007118/0.3973, allocations: 1.229 MB / 398.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009036/0.4064, allocations: 3.587 MB / 401.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003699/0.4068, allocations: 449.7 kB / 402.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001323/0.4081, allocations: 0.5505 MB / 402.7 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/0.4222, allocations: 7.271 MB / 410 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.4224, allocations: 14.58 kB / 410 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006635/0.4231, allocations: 229.8 kB / 410.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002459/0.4233, allocations: 260 kB / 410.5 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0159/0.4392, allocations: 6.132 MB / 416.6 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04629/0.4856, allocations: 23.93 MB / 440.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008427/0.4941, allocations: 8.749 MB / 449.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004609/0.4987, allocations: 2.401 MB / 451.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01517/0.5139, allocations: 7.045 MB / 458.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.609e-05/0.514, allocations: 56.56 kB / 458.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=238): time 6.082e-06/0.514, allocations: 0 / 458.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=282): time 0.03243/0.5465, allocations: 14.55 MB / 473.3 MB, free: 2.387 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.5466, allocations: 81.59 kB / 473.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005955/0.5525, allocations: 3.46 MB / 476.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005347/0.5531, allocations: 73.53 kB / 476.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/0.5551, allocations: 2.677 MB / 479.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001192/0.5563, allocations: 0.9675 MB / 480.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/0.5565, allocations: 76 kB / 480.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.5567, allocations: 452.2 kB / 481.1 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/0.5595, allocations: 1.581 MB / 482.7 MB, free: 9.016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003319/0.5628, allocations: 2.789 MB / 485.5 MB, free: 5.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00327/0.5661, allocations: 2.045 MB / 487.5 MB, free: 3.684 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.05e-05/0.5661, allocations: 12 kB / 487.5 MB, free: 3.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.009544/0.5757, allocations: 5.545 MB / 493.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.5757, allocations: 20 kB / 493.1 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.099e-05/0.5758, allocations: 47.95 kB / 493.1 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/0.5774, allocations: 0.6894 MB / 493.8 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.5807, allocations: 0.8837 MB / 494.7 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009704/0.5904, allocations: 9.592 MB / 0.4925 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004162/0.5947, allocations: 242.9 kB / 0.4927 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005413/0.5952, allocations: 164 kB / 0.4929 GB, free: 2.215 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003585/0.5988, allocations: 1.632 MB / 0.4945 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009895/0.5998, allocations: 387.2 kB / 0.4948 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007643/0.6075, allocations: 4.607 MB / 0.4993 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.32e-05/0.6075, allocations: 32.56 kB / 0.4994 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/0.6076, allocations: 8 kB / 0.4994 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/0.6076, allocations: 15.94 kB / 0.4994 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/0.6247, allocations: 10.07 MB / 0.5092 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.6247, allocations: 4.656 kB / 0.5092 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002176/0.6269, allocations: 0.5224 MB / 0.5097 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/0.6288, allocations: 0.75 MB / 0.5105 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.629, allocations: 71.97 kB / 0.5105 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/0.641, allocations: 13.02 MB / 0.5233 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.6411, allocations: 6.812 kB / 0.5233 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2358/0.8769, allocations: 6.732 MB / 0.5298 GB, free: 141.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002799/0.8797, allocations: 0.7849 MB / 0.5306 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/0.881, allocations: 75.95 kB / 0.5307 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002902/0.8839, allocations: 184.2 kB / 0.5309 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005319/0.8845, allocations: 207.5 kB / 0.5311 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/0.8847, allocations: 84.27 kB / 0.5311 GB, free: 141.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005316/0.8901, allocations: 2.33 MB / 0.5334 GB, free: 140.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.8901, allocations: 0 / 0.5334 GB, free: 140.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00684/0.8969, allocations: 1.109 MB / 0.5345 GB, free: 140.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01147/0.9084, allocations: 7.457 MB / 0.5418 GB, free: 137 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007162/0.9156, allocations: 4.765 MB / 0.5464 GB, free: 134.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/0.9157, allocations: 0 / 0.5464 GB, free: 134.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004076/0.9198, allocations: 2.881 MB / 0.5492 GB, free: 133.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005893/0.9257, allocations: 0.8655 MB / 0.5501 GB, free: 133.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07375/0.9995, allocations: 34.86 MB / 0.5841 GB, free: 99.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005093/1.005, allocations: 3.509 MB / 0.5876 GB, free: 95.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003829/1.008, allocations: 0.8522 MB / 0.5884 GB, free: 95.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003772/1.012, allocations: 2.237 MB / 0.5906 GB, free: 92.83 MB / 430.1 MB Notification: Performance of SimCode: time 1.303e-06/1.012, allocations: 0 / 0.5906 GB, free: 92.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1242/1.137, allocations: 90.65 MB / 0.6791 GB, free: 2.043 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/1.137, allocations: 245.3 kB / 0.6793 GB, free: 1.789 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.886/6.023, allocations: 0 / 0.6793 GB, free: 1.789 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat