Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",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.001063/0.001063, allocations: 88.84 kB / 16.31 MB, free: 6.449 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.001173/0.001173, allocations: 183.6 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.3 MB / 241.2 MB, free: 5.277 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003526, allocations: 7.734 kB / 300.9 MB, free: 5.609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1403, allocations: 50.43 MB / 351.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.02574/0.166, allocations: 25.95 MB / 377.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.1827, allocations: 7.639 MB / 385 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006002/0.1887, allocations: 179.4 kB / 385.1 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005707/0.1945, allocations: 1.398 MB / 386.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008664/0.2032, allocations: 2.198 MB / 388.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00435/0.2075, allocations: 1.141 MB / 389.9 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01385/0.2214, allocations: 10.03 MB / 399.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01018/0.2316, allocations: 6.235 MB / 406.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006786/0.2384, allocations: 3.241 MB / 409.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008058/0.2465, allocations: 4.201 MB / 413.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002755/0.2493, allocations: 0.5352 MB / 414.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004576/0.2539, allocations: 0.8433 MB / 415 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004033/0.258, allocations: 2.008 MB / 417 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005739/0.2638, allocations: 1.899 MB / 418.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2742/0.538, allocations: 14.39 MB / 433.3 MB, free: 17.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.433e-06/0.5381, allocations: 2.031 kB / 433.3 MB, free: 17.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5381, allocations: 0 / 433.3 MB, free: 17.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000626/0.5387, allocations: 0 / 433.3 MB, free: 17.64 MB / 350.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.03014/0.5689, allocations: 9.313 MB / 442.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.5689, allocations: 9.625 kB / 442.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005118/0.5741, allocations: 1.173 MB / 443.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01373/0.5878, allocations: 2.093 MB / 445.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.6035, allocations: 5.587 MB / 451.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008343/0.6044, allocations: 0.6518 MB / 452.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004362/0.6088, allocations: 0.8414 MB / 452.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03775/0.6465, allocations: 11.42 MB / 464.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/0.6469, allocations: 11.16 kB / 464.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002435/0.6494, allocations: 359.8 kB / 464.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003828/0.6497, allocations: 377.2 kB / 465.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02697/0.6767, allocations: 9.689 MB / 474.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08438/0.7612, allocations: 36.05 MB / 0.4988 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01784/0.779, allocations: 16.96 MB / 0.5154 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007055/0.7861, allocations: 3.573 MB / 0.5189 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02117/0.8074, allocations: 9.878 MB / 0.5285 GB, free: 2.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.505e-05/0.8075, allocations: 72.55 kB / 0.5286 GB, free: 2.816 MB / 414.1 MB Notification: Performance of pre-optimization done (n=310): time 5.791e-06/0.8075, allocations: 0 / 0.5286 GB, free: 2.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=362): time 0.03752/0.845, allocations: 15.78 MB / 0.544 GB, free: 2.898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.8451, allocations: 90.23 kB / 0.5441 GB, free: 2.797 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008525/0.8537, allocations: 4.47 MB / 0.5485 GB, free: 14.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000723/0.8544, allocations: 85.7 kB / 0.5486 GB, free: 14.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003203/0.8576, allocations: 3.873 MB / 0.5523 GB, free: 10.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001844/0.8595, allocations: 1.235 MB / 0.5535 GB, free: 9.117 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/0.8598, allocations: 92 kB / 0.5536 GB, free: 9.027 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000295/0.8601, allocations: 488 kB / 0.5541 GB, free: 8.543 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/0.8638, allocations: 1.945 MB / 0.556 GB, free: 6.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004684/0.8685, allocations: 3.4 MB / 0.5593 GB, free: 2.551 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004469/0.873, allocations: 2.525 MB / 0.5618 GB, free: 56 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.404e-05/0.8731, allocations: 12 kB / 0.5618 GB, free: 44 kB / 446.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01274/0.8858, allocations: 6.616 MB / 0.5683 GB, free: 9.652 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.082e-05/0.8859, allocations: 28 kB / 0.5683 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-05/0.886, allocations: 47.95 kB / 0.5683 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002024/0.888, allocations: 0.7544 MB / 0.5691 GB, free: 8.812 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004689/0.8927, allocations: 1.073 MB / 0.5701 GB, free: 7.805 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.9045, allocations: 10.18 MB / 0.5801 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00509/0.9096, allocations: 262.1 kB / 0.5803 GB, free: 12.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009403/0.9106, allocations: 204 kB / 0.5805 GB, free: 12.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 208 * 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.005939/0.9166, allocations: 2.533 MB / 0.583 GB, free: 10.22 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001681/0.9183, allocations: 494 kB / 0.5834 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/0.9292, allocations: 5.546 MB / 0.5889 GB, free: 4.141 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-05/0.9292, allocations: 36 kB / 0.5889 GB, free: 4.105 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/0.9293, allocations: 12 kB / 0.5889 GB, free: 4.094 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.338e-05/0.9293, allocations: 15.94 kB / 0.5889 GB, free: 4.078 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2579/1.187, allocations: 13.04 MB / 0.6017 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/1.187, allocations: 11.34 kB / 0.6017 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/1.19, allocations: 0.6253 MB / 0.6023 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00227/1.192, allocations: 0.9111 MB / 0.6032 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004526/1.193, allocations: 89.3 kB / 0.6033 GB, free: 165.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/1.206, allocations: 14.13 MB / 0.617 GB, free: 155.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/1.206, allocations: 5.609 kB / 0.6171 GB, free: 155.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/1.22, allocations: 8.143 MB / 0.625 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00376/1.224, allocations: 0.9857 MB / 0.626 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001578/1.226, allocations: 77.59 kB / 0.626 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003287/1.229, allocations: 219.2 kB / 0.6263 GB, free: 151.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006688/1.23, allocations: 270.2 kB / 0.6265 GB, free: 151.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002522/1.23, allocations: 101.6 kB / 0.6266 GB, free: 151.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00547/1.235, allocations: 3.029 MB / 0.6296 GB, free: 150.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.52e-07/1.235, allocations: 0 / 0.6296 GB, free: 150.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007906/1.243, allocations: 1.477 MB / 0.631 GB, free: 149.9 MB / 478.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.stray.Phi.re,smeeM.stator.stray.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.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.01417/1.258, allocations: 8.868 MB / 0.6397 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008354/1.266, allocations: 5.708 MB / 0.6452 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/1.266, allocations: 5.938 kB / 0.6452 GB, free: 137.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004696/1.271, allocations: 3.424 MB / 0.6486 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006807/1.278, allocations: 1.12 MB / 0.6497 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09965/1.377, allocations: 48.33 MB / 0.6969 GB, free: 81.39 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005063/1.382, allocations: 5.07 MB / 0.7018 GB, free: 76.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004365/1.387, allocations: 1.068 MB / 0.7029 GB, free: 75.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005485/1.392, allocations: 3.357 MB / 0.7062 GB, free: 71.85 MB / 478.1 MB Notification: Performance of SimCode: time 1.473e-06/1.392, allocations: 0 / 0.7062 GB, free: 71.85 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4207/1.813, allocations: 119.8 MB / 0.8232 GB, free: 131.2 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/1.813, allocations: 287.6 kB / 0.8235 GB, free: 130.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.918/6.731, allocations: 0 / 0.8235 GB, free: 130.9 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat does not exist to compare? outputFormat=mat