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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 97.89 kB / 16.94 MB, free: 5.98 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.0009097/0.0009097, allocations: 178.5 kB / 17.83 MB, free: 5.652 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.353/1.353, 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.0004482/0.0004482, allocations: 8 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08213/0.08259, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.02258/0.1052, allocations: 23.49 MB / 351.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.1203, allocations: 7.955 MB / 359.9 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005092/0.1255, allocations: 159.4 kB / 360 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004828/0.1303, allocations: 1.406 MB / 361.4 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007912/0.1383, allocations: 2.411 MB / 363.8 MB, free: 480 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004436/0.1427, allocations: 1.158 MB / 365 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01182/0.1546, allocations: 6.961 MB / 372 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00797/0.1626, allocations: 6.131 MB / 378.1 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1602/0.3229, allocations: 3.185 MB / 381.3 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006959/0.3299, allocations: 3.891 MB / 385.2 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003033/0.3329, allocations: 0.535 MB / 385.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004719/0.3377, allocations: 0.8304 MB / 386.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003802/0.3415, allocations: 1.941 MB / 388.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004183/0.3457, allocations: 1.896 MB / 390.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01463/0.3604, allocations: 14.28 MB / 404.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3604, allocations: 0 / 404.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3604, allocations: 0 / 404.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007018/0.3611, allocations: 0 / 404.7 MB, free: 8.898 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.0253/0.3864, allocations: 9.291 MB / 413.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3865, allocations: 8.906 kB / 414 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003813/0.3903, allocations: 1.178 MB / 415.1 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/0.4019, allocations: 2.084 MB / 417.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/0.4132, allocations: 5.411 MB / 422.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005703/0.4138, allocations: 0.6559 MB / 423.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002672/0.4165, allocations: 0.8442 MB / 424.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02512/0.4416, allocations: 11.33 MB / 435.5 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002137/0.4419, allocations: 12.27 kB / 435.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001268/0.4431, allocations: 357.6 kB / 435.8 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003289/0.4435, allocations: 376.1 kB / 436.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02027/0.4637, allocations: 9.653 MB / 445.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06725/0.531, allocations: 36 MB / 481.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01679/0.5479, allocations: 16.95 MB / 498.8 MB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01712/0.565, allocations: 9.39 MB / 0.4963 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.5651, allocations: 72.7 kB / 0.4963 GB, free: 15.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=330): time 4.889e-06/0.5651, allocations: 0 / 0.4963 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=384): time 0.03808/0.6032, allocations: 16.87 MB / 0.5128 GB, free: 14.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.6033, allocations: 90.41 kB / 0.5129 GB, free: 13.93 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006871/0.6102, allocations: 4.416 MB / 0.5172 GB, free: 9.508 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005771/0.6108, allocations: 89.61 kB / 0.5173 GB, free: 9.418 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.6133, allocations: 3.843 MB / 0.521 GB, free: 5.547 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001289/0.6146, allocations: 1.3 MB / 0.5223 GB, free: 4.262 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.6149, allocations: 100 kB / 0.5224 GB, free: 4.164 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.6151, allocations: 492.2 kB / 0.5229 GB, free: 3.676 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003225/0.6184, allocations: 2.008 MB / 0.5248 GB, free: 1.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004102/0.6225, allocations: 3.412 MB / 0.5282 GB, free: 13.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004021/0.6265, allocations: 2.597 MB / 0.5307 GB, free: 11.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.167e-05/0.6265, allocations: 12 kB / 0.5307 GB, free: 11.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=601) (initialization): time 0.01123/0.6378, allocations: 6.772 MB / 0.5373 GB, free: 4.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.567e-05/0.6379, allocations: 24 kB / 0.5374 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.964e-05/0.6379, allocations: 44 kB / 0.5374 GB, free: 4.434 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.6398, allocations: 0.7738 MB / 0.5382 GB, free: 3.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004306/0.6441, allocations: 1.12 MB / 0.5392 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1806/0.8247, allocations: 10.57 MB / 0.5496 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004459/0.8292, allocations: 256.5 kB / 0.5498 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006239/0.8299, allocations: 205.7 kB / 0.55 GB, free: 142.2 MB / 446.1 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 (545): * Single equations (assignments): 537 * Array equations: 2 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004779/0.8347, allocations: 2.545 MB / 0.5525 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/0.8358, allocations: 494.6 kB / 0.553 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009303/0.8451, allocations: 5.79 MB / 0.5586 GB, free: 139.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-05/0.8452, allocations: 37.91 kB / 0.5587 GB, free: 139.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.8452, allocations: 12.81 kB / 0.5587 GB, free: 139.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.743e-05/0.8453, allocations: 18.19 kB / 0.5587 GB, free: 139.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02206/0.8673, allocations: 13.93 MB / 0.5723 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.8674, allocations: 3.719 kB / 0.5723 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002585/0.87, allocations: 0.6737 MB / 0.5729 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001882/0.8719, allocations: 0.9096 MB / 0.5738 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002571/0.8722, allocations: 93.02 kB / 0.5739 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.012/0.8842, allocations: 14.35 MB / 0.5879 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.8842, allocations: 7.688 kB / 0.5879 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/0.8959, allocations: 9.23 MB / 0.597 GB, free: 115 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00275/0.8987, allocations: 1.005 MB / 0.5979 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007451/0.8995, allocations: 80 kB / 0.598 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002352/0.9018, allocations: 216.1 kB / 0.5982 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005083/0.9023, allocations: 300.8 kB / 0.5985 GB, free: 113.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001933/0.9025, allocations: 106.8 kB / 0.5986 GB, free: 113.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003756/0.9063, allocations: 2.987 MB / 0.6015 GB, free: 111 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9063, allocations: 0 / 0.6015 GB, free: 111 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004175/0.9105, allocations: 1.49 MB / 0.603 GB, free: 109.5 MB / 446.1 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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 299 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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,(2,100.0%) 13,(4,93.8%) 33,(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.01075/0.9212, allocations: 11.08 MB / 0.6138 GB, free: 98.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007819/0.9291, allocations: 5.877 MB / 0.6195 GB, free: 92.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.9291, allocations: 0 / 0.6195 GB, free: 92.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004648/0.9338, allocations: 3.578 MB / 0.623 GB, free: 88.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004882/0.9387, allocations: 1.057 MB / 0.6241 GB, free: 87.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09622/1.035, allocations: 78.36 MB / 0.7006 GB, free: 5.938 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004122/1.039, allocations: 5.24 MB / 0.7057 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1684/1.207, allocations: 1.064 MB / 0.7067 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005568/1.213, allocations: 3.295 MB / 0.71 GB, free: 144.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.243e-06/1.213, allocations: 0 / 0.71 GB, free: 144.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/1.365, allocations: 120.3 MB / 0.8275 GB, free: 47.11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/1.365, allocations: 240.1 kB / 0.8277 GB, free: 46.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.841/6.206, allocations: 4 kB / 0.8277 GB, free: 46.86 MB / 446.1 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) Environment - environmentSimulation: 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