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.0009592/0.0009592, allocations: 94.52 kB / 16.95 MB, free: 6.113 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.001199/0.001199, allocations: 174.4 kB / 17.84 MB, free: 5.73 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.591/1.591, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004811/0.0004813, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1091, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.02808/0.1372, allocations: 25.87 MB / 354.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0209/0.1582, allocations: 7.632 MB / 362 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006743/0.165, allocations: 167.3 kB / 362.1 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006289/0.1713, allocations: 1.382 MB / 363.5 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00989/0.1813, allocations: 2.179 MB / 365.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005551/0.1869, allocations: 1.166 MB / 366.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01623/0.2031, allocations: 10.07 MB / 376.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1983/0.4015, allocations: 6.12 MB / 383 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005952/0.4075, allocations: 3.248 MB / 386.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008547/0.4161, allocations: 4.215 MB / 390.5 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002925/0.419, allocations: 0.5431 MB / 391.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005116/0.4242, allocations: 0.8477 MB / 391.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003426/0.4276, allocations: 2.011 MB / 393.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004752/0.4324, allocations: 1.9 MB / 395.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.4472, allocations: 14.33 MB / 410.1 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.4472, allocations: 2.5 kB / 410.1 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4472, allocations: 0 / 410.1 MB, free: 6.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006836/0.4479, allocations: 0 / 410.1 MB, free: 6.145 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.02591/0.4739, allocations: 9.311 MB / 419.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4739, allocations: 11.59 kB / 419.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005196/0.4791, allocations: 1.173 MB / 420.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01273/0.4919, allocations: 2.093 MB / 422.7 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/0.5063, allocations: 5.369 MB / 428.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001025/0.5074, allocations: 0.6531 MB / 428.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003591/0.511, allocations: 0.8445 MB / 429.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03228/0.5433, allocations: 11.4 MB / 441 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004999/0.5438, allocations: 4 kB / 441 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003039/0.5469, allocations: 357.3 kB / 441.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004857/0.5474, allocations: 377.5 kB / 441.7 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02747/0.5749, allocations: 9.656 MB / 451.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07593/0.6509, allocations: 36.05 MB / 487.4 MB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/0.6686, allocations: 16.96 MB / 0.4926 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007944/0.6766, allocations: 3.534 MB / 0.496 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02325/0.6998, allocations: 9.815 MB / 0.5056 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.48e-05/0.7, allocations: 68.97 kB / 0.5057 GB, free: 4.574 MB / 414.1 MB Notification: Performance of pre-optimization done (n=308): time 7.815e-06/0.7, allocations: 0 / 0.5057 GB, free: 4.574 MB / 414.1 MB Notification: Performance of matching and sorting (n=360): time 0.04141/0.7414, allocations: 15.85 MB / 0.5211 GB, free: 4.582 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.7415, allocations: 90.22 kB / 0.5212 GB, free: 4.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009041/0.7506, allocations: 4.484 MB / 0.5256 GB, free: 15.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006923/0.7513, allocations: 81.7 kB / 0.5257 GB, free: 15.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002947/0.7543, allocations: 3.889 MB / 0.5295 GB, free: 11.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001578/0.7559, allocations: 1.228 MB / 0.5307 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006073/0.7565, allocations: 95.12 kB / 0.5308 GB, free: 10.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000347/0.7569, allocations: 480 kB / 0.5312 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003861/0.7607, allocations: 1.934 MB / 0.5331 GB, free: 8.266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005408/0.7662, allocations: 3.405 MB / 0.5365 GB, free: 4.215 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00526/0.7715, allocations: 2.518 MB / 0.5389 GB, free: 1.727 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.682e-05/0.7716, allocations: 12 kB / 0.5389 GB, free: 1.715 MB / 446.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.2035/0.975, allocations: 6.597 MB / 0.5454 GB, free: 146.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.706e-05/0.9751, allocations: 25.97 kB / 0.5454 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/0.9753, allocations: 48.12 kB / 0.5454 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001992/0.9773, allocations: 0.7514 MB / 0.5462 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00472/0.982, allocations: 1.084 MB / 0.5472 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009813/0.9919, allocations: 10.17 MB / 0.5572 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0046/0.9965, allocations: 253.9 kB / 0.5574 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007455/0.9973, allocations: 207.9 kB / 0.5576 GB, free: 139.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * 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 (534): * Single equations (assignments): 526 * 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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005876/1.003, allocations: 2.537 MB / 0.5601 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001346/1.005, allocations: 494.9 kB / 0.5606 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/1.015, allocations: 5.505 MB / 0.5659 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.674e-05/1.015, allocations: 37.77 kB / 0.566 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.669e-05/1.015, allocations: 11.34 kB / 0.566 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-05/1.015, allocations: 18.78 kB / 0.566 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02157/1.037, allocations: 13.01 MB / 0.5787 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/1.037, allocations: 4.75 kB / 0.5787 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/1.039, allocations: 0.6247 MB / 0.5793 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/1.042, allocations: 0.9276 MB / 0.5802 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004446/1.042, allocations: 85.8 kB / 0.5803 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/1.055, allocations: 14.1 MB / 0.5941 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/1.055, allocations: 7.938 kB / 0.5941 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.068, allocations: 8.123 MB / 0.602 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003221/1.071, allocations: 0.9845 MB / 0.603 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.073, allocations: 80.23 kB / 0.6031 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002767/1.075, allocations: 213.3 kB / 0.6033 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005613/1.076, allocations: 282.3 kB / 0.6035 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002122/1.076, allocations: 108 kB / 0.6036 GB, free: 109 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004577/1.081, allocations: 3.032 MB / 0.6066 GB, free: 106 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.081, allocations: 0 / 0.6066 GB, free: 106 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005708/1.087, allocations: 1.473 MB / 0.608 GB, free: 104.5 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (284): * Single equations (assignments): 277 * 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.01181/1.098, allocations: 8.822 MB / 0.6166 GB, free: 95.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00908/1.107, allocations: 5.687 MB / 0.6222 GB, free: 89.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/1.108, allocations: 4 kB / 0.6222 GB, free: 89.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005202/1.113, allocations: 3.451 MB / 0.6256 GB, free: 86.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007384/1.12, allocations: 1.121 MB / 0.6267 GB, free: 85.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09966/1.22, allocations: 48.3 MB / 0.6738 GB, free: 33.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007904/1.228, allocations: 5.068 MB / 0.6788 GB, free: 28.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006371/1.234, allocations: 1.056 MB / 0.6798 GB, free: 27.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005902/1.24, allocations: 3.366 MB / 0.6831 GB, free: 24.35 MB / 446.1 MB Notification: Performance of SimCode: time 1.382e-06/1.24, allocations: 4 kB / 0.6831 GB, free: 24.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3677/1.608, allocations: 119.8 MB / 0.8001 GB, free: 73.27 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001448/1.608, allocations: 246 kB / 0.8003 GB, free: 72.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.642/7.25, allocations: 0 / 0.8003 GB, free: 72.99 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