Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.92 kB / 366.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09878, allocations: 52.13 MB / 418.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2309/0.3296, allocations: 41.29 MB / 459.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02232/0.352, allocations: 11.13 MB / 470.9 MB, free: 6.125 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009298/0.3613, allocations: 355.3 kB / 471.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01771/0.379, allocations: 7.972 MB / 479.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.3935, allocations: 3.661 MB / 482.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00899/0.4025, allocations: 2.283 MB / 485.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02263/0.4251, allocations: 12.48 MB / 497.7 MB, free: 5.723 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03645/0.4616, allocations: 17.86 MB / 0.5035 GB, free: 6.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0129/0.4745, allocations: 6.486 MB / 0.5098 GB, free: 480 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01335/0.4878, allocations: 7.221 MB / 0.5169 GB, free: 9.219 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005225/0.4931, allocations: 1.824 MB / 0.5186 GB, free: 7.395 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008084/0.5012, allocations: 2.238 MB / 0.5208 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006294/0.5074, allocations: 3.655 MB / 0.5244 GB, free: 1.496 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01386/0.5213, allocations: 7.085 MB / 0.5313 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03382/0.5551, allocations: 24.08 MB / 0.5548 GB, free: 2.227 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.5551, allocations: 3.938 kB / 0.5548 GB, free: 2.223 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5551, allocations: 0 / 0.5548 GB, free: 2.223 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006387/0.5558, allocations: 0 / 0.5548 GB, free: 2.223 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04337/0.5992, allocations: 14.46 MB / 0.569 GB, free: 3.629 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.5992, allocations: 12.03 kB / 0.569 GB, free: 3.617 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004013/0.5996, allocations: 336.3 kB / 0.5693 GB, free: 3.285 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006181/0.6058, allocations: 1.75 MB / 0.571 GB, free: 1.523 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02969/0.6355, allocations: 5.229 MB / 0.5761 GB, free: 12.28 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01935/0.6548, allocations: 7.721 MB / 0.5836 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009907/0.6558, allocations: 0.8308 MB / 0.5845 GB, free: 3.652 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004204/0.66, allocations: 1.094 MB / 0.5855 GB, free: 2.559 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04308/0.7031, allocations: 16.6 MB / 0.6017 GB, free: 1.879 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005068/0.7036, allocations: 31.81 kB / 0.6018 GB, free: 1.848 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003155/0.7068, allocations: 460 kB / 0.6022 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007048/0.7075, allocations: 0.5773 MB / 0.6028 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03428/0.7418, allocations: 14.77 MB / 0.6172 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4399/1.182, allocations: 55.75 MB / 0.6716 GB, free: 127 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01568/1.197, allocations: 20.5 MB / 0.6917 GB, free: 107.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004553/1.202, allocations: 3.021 MB / 0.6946 GB, free: 105.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01524/1.217, allocations: 9.84 MB / 0.7042 GB, free: 99.05 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/1.217, allocations: 69.08 kB / 0.7043 GB, free: 98.98 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=317): time 5.55e-06/1.217, allocations: 0 / 0.7043 GB, free: 98.98 MB / 0.5138 GB Notification: Performance of matching and sorting (n=407): time 0.04594/1.263, allocations: 23.32 MB / 0.727 GB, free: 84.75 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/1.263, allocations: 120.5 kB / 0.7272 GB, free: 84.61 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/1.27, allocations: 5.169 MB / 0.7322 GB, free: 79.52 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008149/1.271, allocations: 93.7 kB / 0.7323 GB, free: 79.42 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002465/1.274, allocations: 5.34 MB / 0.7375 GB, free: 74.55 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001347/1.275, allocations: 1.486 MB / 0.739 GB, free: 73.09 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00191/1.277, allocations: 1.354 MB / 0.7403 GB, free: 71.73 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.749e-05/1.277, allocations: 301.1 kB / 0.7406 GB, free: 71.43 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003986/1.281, allocations: 3.066 MB / 0.7436 GB, free: 68.36 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004606/1.285, allocations: 5.898 MB / 0.7493 GB, free: 61.14 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008963/1.294, allocations: 9.459 MB / 0.7586 GB, free: 50.32 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.14e-05/1.295, allocations: 32 kB / 0.7586 GB, free: 50.29 MB / 0.5138 GB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01746/1.312, allocations: 10.87 MB / 0.7692 GB, free: 39.32 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.393e-05/1.312, allocations: 45.59 kB / 0.7693 GB, free: 39.27 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/1.312, allocations: 96 kB / 0.7694 GB, free: 39.18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003721/1.316, allocations: 1.617 MB / 0.7709 GB, free: 37.55 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005435/1.321, allocations: 1.529 MB / 0.7724 GB, free: 36.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01915/1.34, allocations: 19.34 MB / 0.7913 GB, free: 15.99 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005784/1.346, allocations: 443.4 kB / 0.7917 GB, free: 15.56 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.347, allocations: 359.9 kB / 0.7921 GB, free: 15.21 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 430 * 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 (792): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(8,26,67.2%), (8,26,65.6%), (1,8,100.0%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005342/1.353, allocations: 3.817 MB / 0.7958 GB, free: 11.38 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/1.354, allocations: 0.5473 MB / 0.7963 GB, free: 10.82 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.366, allocations: 7.509 MB / 0.8037 GB, free: 3.195 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006482/1.372, allocations: 4.21 MB / 0.8078 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.823e-05/1.372, allocations: 16 kB / 0.8078 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.804e-05/1.372, allocations: 23.86 kB / 0.8078 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03269/1.405, allocations: 17.17 MB / 0.8246 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.139e-05/1.405, allocations: 4 kB / 0.8246 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/1.408, allocations: 0.6475 MB / 0.8252 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00425/1.412, allocations: 1.518 MB / 0.8267 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004577/1.412, allocations: 95.97 kB / 0.8268 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02663/1.439, allocations: 21.57 MB / 0.8479 GB, free: 4.766 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/1.439, allocations: 8.031 kB / 0.8479 GB, free: 4.758 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2234/1.663, allocations: 10.75 MB / 0.8584 GB, free: 182.3 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002953/1.665, allocations: 1.122 MB / 0.8595 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/1.667, allocations: 81.66 kB / 0.8595 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00331/1.67, allocations: 224.2 kB / 0.8598 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009582/1.671, allocations: 318.3 kB / 0.8601 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003275/1.671, allocations: 118.4 kB / 0.8602 GB, free: 182.2 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006636/1.678, allocations: 3.424 MB / 0.8635 GB, free: 182 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.21e-07/1.678, allocations: 1.281 kB / 0.8635 GB, free: 182 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009388/1.687, allocations: 1.931 MB / 0.8654 GB, free: 182 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($outputAlias_Ptr,smee.phiMechanical,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (328): * Single equations (assignments): 319 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (2,8,100.0%), (1,4,100.0%), (1,11,100.0%), (3,4,77.8%), (8,20,64.1%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01964/1.707, allocations: 11.5 MB / 0.8766 GB, free: 177.2 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01293/1.72, allocations: 8.256 MB / 0.8847 GB, free: 173.7 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/1.72, allocations: 3.938 kB / 0.8847 GB, free: 173.7 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006986/1.727, allocations: 4.304 MB / 0.8889 GB, free: 171.6 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006106/1.733, allocations: 1.204 MB / 0.8901 GB, free: 171.2 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09093/1.824, allocations: 66.6 MB / 0.9551 GB, free: 112.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006408/1.83, allocations: 6.707 MB / 0.9617 GB, free: 105.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00466/1.835, allocations: 1.895 MB / 0.9635 GB, free: 103.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00472/1.84, allocations: 4.116 MB / 0.9675 GB, free: 99.61 MB / 0.5607 GB Notification: Performance of SimCode: time 9.22e-07/1.84, allocations: 0 / 0.9675 GB, free: 99.61 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4451/2.285, allocations: 153.7 MB / 1.118 GB, free: 148.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.99/23.28, allocations: 8.078 kB / 1.118 GB, free: 148.7 MB / 0.5607 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.15273187099956] Failed to read output from testmodel.py, exit status != 0: ['time', 'constantSpeed.phi', 'constantSpeedQS.phi', 'smee.excitation.electroMagneticConverter.Phi.re', 'smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'smee.stator.stray.port_p.Phi.im', 'smee.stator.stray.port_p.Phi.re', 'smee.stator.zeroInductor.i0', 'smeeQS.short.port_p.reference.gamma'] 23.500774630054366 23.511046197 22.953172283 Calling exit ...