Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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.001249/0.001249, allocations: 89.39 kB / 16.32 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.001098/0.001099, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.429/1.429, allocations: 223.2 MB / 241.2 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002653, allocations: 4 kB / 300.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 50.42 MB / 351.4 MB, free: 3.898 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2055/0.31, allocations: 21.28 MB / 372.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01483/0.3249, allocations: 6.696 MB / 379.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005878/0.3308, allocations: 134.2 kB / 379.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00583/0.3367, allocations: 1.181 MB / 380.6 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009834/0.3465, allocations: 1.898 MB / 382.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004862/0.3514, allocations: 0.9578 MB / 383.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01363/0.3651, allocations: 7.177 MB / 390.7 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009075/0.3742, allocations: 3.734 MB / 394.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005374/0.3796, allocations: 2.282 MB / 396.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006289/0.386, allocations: 3.029 MB / 399.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001982/0.388, allocations: 363 kB / 400.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004468/0.3925, allocations: 0.7068 MB / 400.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002511/0.395, allocations: 1.495 MB / 402.3 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003284/0.3983, allocations: 1.279 MB / 403.6 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.4115, allocations: 9.271 MB / 412.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.4116, allocations: 0 / 412.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.287e-06/0.4116, allocations: 0 / 412.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004249/0.412, allocations: 0 / 412.8 MB, free: 7.793 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.01811/0.4302, allocations: 6.315 MB / 419.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.4302, allocations: 8.031 kB / 419.1 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002506/0.4327, allocations: 0.7789 MB / 419.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006881/0.4396, allocations: 1.229 MB / 421.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008669/0.4484, allocations: 3.73 MB / 424.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000421/0.4488, allocations: 446.9 kB / 425.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001385/0.4502, allocations: 0.5575 MB / 425.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01523/0.4654, allocations: 7.278 MB / 433.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.4657, allocations: 7.906 kB / 433.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005877/0.4663, allocations: 230.8 kB / 433.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003519/0.4666, allocations: 267.2 kB / 433.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01411/0.4807, allocations: 6.15 MB / 439.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05331/0.5341, allocations: 23.93 MB / 463.7 MB, free: 4.387 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00998/0.5441, allocations: 8.746 MB / 472.5 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00481/0.549, allocations: 2.415 MB / 474.9 MB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01557/0.5646, allocations: 7.03 MB / 481.9 MB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.639e-05/0.5647, allocations: 56.56 kB / 482 MB, free: 1.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 7.224e-06/0.5647, allocations: 3.938 kB / 482 MB, free: 1.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03681/0.6015, allocations: 14.53 MB / 496.5 MB, free: 2.344 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.6016, allocations: 81.59 kB / 496.6 MB, free: 2.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007021/0.6087, allocations: 3.455 MB / 0.4883 GB, free: 14.81 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005176/0.6092, allocations: 73.7 kB / 0.4884 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002232/0.6115, allocations: 2.679 MB / 0.491 GB, free: 12.03 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001275/0.6128, allocations: 0.9628 MB / 0.492 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004357/0.6132, allocations: 76 kB / 0.492 GB, free: 11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003128/0.6135, allocations: 453.8 kB / 0.4925 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/0.6167, allocations: 1.581 MB / 0.494 GB, free: 8.973 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003884/0.6206, allocations: 2.782 MB / 0.4967 GB, free: 5.656 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003839/0.6245, allocations: 2.047 MB / 0.4987 GB, free: 3.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-05/0.6245, allocations: 12 kB / 0.4987 GB, free: 3.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.0114/0.6359, allocations: 5.546 MB / 0.5041 GB, free: 13.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.045e-05/0.636, allocations: 24 kB / 0.5042 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.593e-05/0.6361, allocations: 36 kB / 0.5042 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/0.6379, allocations: 0.6765 MB / 0.5049 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.6413, allocations: 0.8814 MB / 0.5057 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.6517, allocations: 9.606 MB / 0.5151 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/0.6554, allocations: 235.6 kB / 0.5153 GB, free: 1.934 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006263/0.6561, allocations: 167.9 kB / 0.5155 GB, free: 1.77 MB / 430.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.003656/0.6597, allocations: 1.62 MB / 0.5171 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/0.661, allocations: 395.2 kB / 0.5174 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009333/0.6703, allocations: 4.596 MB / 0.5219 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.415e-05/0.6704, allocations: 42.39 kB / 0.522 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.052e-05/0.6705, allocations: 4 kB / 0.522 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.889e-05/0.6705, allocations: 15.95 kB / 0.522 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02061/0.6911, allocations: 10.07 MB / 0.5318 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/0.6912, allocations: 4 kB / 0.5318 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/0.6935, allocations: 0.5152 MB / 0.5323 GB, free: 188 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2265/0.92, allocations: 0.7333 MB / 0.533 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006158/0.9207, allocations: 79.39 kB / 0.5331 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.9336, allocations: 13.03 MB / 0.5458 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.9337, allocations: 7.109 kB / 0.5459 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01207/0.9458, allocations: 6.745 MB / 0.5524 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002223/0.948, allocations: 0.7885 MB / 0.5532 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006421/0.9487, allocations: 65.33 kB / 0.5533 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/0.9506, allocations: 193.5 kB / 0.5535 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005263/0.9512, allocations: 202.9 kB / 0.5536 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/0.9514, allocations: 85.75 kB / 0.5537 GB, free: 127.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003801/0.9552, allocations: 2.329 MB / 0.556 GB, free: 126.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.9552, allocations: 0 / 0.556 GB, free: 126.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004827/0.96, allocations: 1.107 MB / 0.5571 GB, free: 126.3 MB / 446.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.stray.Phi.re,smeeM.stator.stray.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.01024/0.9703, allocations: 7.449 MB / 0.5644 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007192/0.9775, allocations: 4.761 MB / 0.569 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/0.9775, allocations: 3.906 kB / 0.569 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004199/0.9817, allocations: 2.883 MB / 0.5718 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005966/0.9877, allocations: 0.8738 MB / 0.5727 GB, free: 118.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07382/1.062, allocations: 34.85 MB / 0.6067 GB, free: 85.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005002/1.067, allocations: 3.501 MB / 0.6101 GB, free: 81.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004549/1.071, allocations: 0.8599 MB / 0.611 GB, free: 80.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004256/1.075, allocations: 2.257 MB / 0.6132 GB, free: 78.66 MB / 446.1 MB Notification: Performance of SimCode: time 3.066e-06/1.075, allocations: 0 / 0.6132 GB, free: 78.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1402/1.216, allocations: 90.63 MB / 0.7017 GB, free: 4.777 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/1.216, allocations: 257.5 kB / 0.7019 GB, free: 4.438 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.709/5.925, allocations: 4.062 kB / 0.7019 GB, free: 4.434 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat