Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.538/1.538, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 64.77 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2796, allocations: 53.37 MB / 432 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.056/0.3356, allocations: 42.03 MB / 474 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02886/0.3644, allocations: 11.43 MB / 485.4 MB, free: 1.203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01037/0.3748, allocations: 354.2 kB / 485.8 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02097/0.3958, allocations: 8.03 MB / 493.8 MB, free: 8.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.015/0.4108, allocations: 3.731 MB / 497.5 MB, free: 5.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01075/0.4215, allocations: 2.376 MB / 499.9 MB, free: 2.684 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0219/0.4434, allocations: 12.63 MB / 0.5005 GB, free: 6.008 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03542/0.4789, allocations: 15.76 MB / 0.5159 GB, free: 6.102 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01183/0.4907, allocations: 6.529 MB / 0.5223 GB, free: 15.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01326/0.5039, allocations: 7.346 MB / 0.5295 GB, free: 8.184 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005924/0.5099, allocations: 1.824 MB / 0.5313 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008511/0.5184, allocations: 2.277 MB / 0.5335 GB, free: 4.082 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006677/0.5251, allocations: 3.666 MB / 0.5371 GB, free: 416 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2456/0.7706, allocations: 7.09 MB / 0.544 GB, free: 30.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03118/0.8018, allocations: 24.11 MB / 0.5675 GB, free: 25.01 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.8018, allocations: 0 / 0.5675 GB, free: 25.01 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.8018, allocations: 0 / 0.5675 GB, free: 25.01 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007867/0.8026, allocations: 0 / 0.5675 GB, free: 25.01 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.04305/0.8457, allocations: 14.46 MB / 0.5816 GB, free: 17.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.8457, allocations: 9.375 kB / 0.5817 GB, free: 17.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006765/0.8525, allocations: 1.749 MB / 0.5834 GB, free: 16.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02873/0.8812, allocations: 5.214 MB / 0.5885 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/0.8981, allocations: 7.745 MB / 0.596 GB, free: 8.746 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007305/0.8988, allocations: 0.8306 MB / 0.5968 GB, free: 8.371 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004946/0.9037, allocations: 1.09 MB / 0.5979 GB, free: 7.945 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04574/0.9495, allocations: 16.63 MB / 0.6141 GB, free: 7.266 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005158/0.95, allocations: 19.42 kB / 0.6142 GB, free: 7.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004276/0.9543, allocations: 454.4 kB / 0.6146 GB, free: 6.812 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007136/0.955, allocations: 0.5773 MB / 0.6152 GB, free: 6.23 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03749/0.9925, allocations: 14.79 MB / 0.6296 GB, free: 7.426 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1163/1.109, allocations: 53.89 MB / 0.6822 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01681/1.126, allocations: 7.624 MB / 0.6897 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006727/1.132, allocations: 3.03 MB / 0.6926 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02279/1.155, allocations: 9.052 MB / 0.7015 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.542e-05/1.155, allocations: 69.22 kB / 0.7015 GB, free: 14.19 MB / 0.545 GB Notification: Performance of pre-optimization done (n=313): time 5.941e-06/1.155, allocations: 0 / 0.7015 GB, free: 14.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=340): time 0.0401/1.195, allocations: 16.33 MB / 0.7175 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/1.195, allocations: 112.4 kB / 0.7176 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01086/1.206, allocations: 5.195 MB / 0.7227 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007287/1.207, allocations: 77.7 kB / 0.7227 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005143/1.212, allocations: 5.358 MB / 0.728 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002121/1.214, allocations: 1.254 MB / 0.7292 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003515/1.218, allocations: 1.274 MB / 0.7304 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001643/1.218, allocations: 301.1 kB / 0.7307 GB, free: 316 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005448/1.223, allocations: 2.64 MB / 0.7333 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008798/1.232, allocations: 5.441 MB / 0.7386 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2564/1.489, allocations: 8.518 MB / 0.7469 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.489, allocations: 28.72 kB / 0.747 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.02122/1.51, allocations: 9.164 MB / 0.7559 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.4e-05/1.51, allocations: 47.34 kB / 0.756 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/1.51, allocations: 93.38 kB / 0.756 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002588/1.513, allocations: 0.909 MB / 0.7569 GB, free: 198.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00596/1.519, allocations: 1.483 MB / 0.7584 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/1.531, allocations: 10.21 MB / 0.7684 GB, free: 191.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006536/1.537, allocations: 402.7 kB / 0.7687 GB, free: 191.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/1.539, allocations: 339.3 kB / 0.7691 GB, free: 191.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * 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 (767): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(8,26,67.2%), (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.009869/1.549, allocations: 3.745 MB / 0.7727 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001576/1.55, allocations: 0.5308 MB / 0.7732 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.561, allocations: 5.702 MB / 0.7788 GB, free: 187.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004606/1.566, allocations: 3.047 MB / 0.7818 GB, free: 186.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.376e-05/1.566, allocations: 12.31 kB / 0.7818 GB, free: 186.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.551e-05/1.566, allocations: 17.44 kB / 0.7818 GB, free: 186.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03027/1.596, allocations: 14.45 MB / 0.7959 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-05/1.596, allocations: 10.08 kB / 0.7959 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002827/1.599, allocations: 0.5993 MB / 0.7965 GB, free: 177.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0024/1.601, allocations: 0.8886 MB / 0.7974 GB, free: 177.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006646/1.602, allocations: 83.17 kB / 0.7975 GB, free: 177.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/1.615, allocations: 13.5 MB / 0.8106 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.615, allocations: 8.547 kB / 0.8106 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/1.63, allocations: 8.364 MB / 0.8188 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003281/1.633, allocations: 0.9388 MB / 0.8197 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001595/1.635, allocations: 64 kB / 0.8198 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003702/1.639, allocations: 199.8 kB / 0.82 GB, free: 155.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/1.64, allocations: 275.9 kB / 0.8202 GB, free: 155.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005114/1.64, allocations: 108.2 kB / 0.8204 GB, free: 155 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.007548/1.648, allocations: 3.443 MB / 0.8237 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/1.648, allocations: 0 / 0.8237 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0101/1.658, allocations: 1.78 MB / 0.8255 GB, free: 149.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,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 (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (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.01722/1.675, allocations: 9.078 MB / 0.8343 GB, free: 140.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01186/1.687, allocations: 6.54 MB / 0.8407 GB, free: 134 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/1.687, allocations: 64 / 0.8407 GB, free: 134 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006068/1.693, allocations: 3.21 MB / 0.8438 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007908/1.701, allocations: 1.177 MB / 0.845 GB, free: 129.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1177/1.819, allocations: 61.43 MB / 0.905 GB, free: 64.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01223/1.831, allocations: 6.568 MB / 0.9114 GB, free: 57.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006793/1.838, allocations: 1.846 MB / 0.9132 GB, free: 55.95 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007207/1.845, allocations: 4.057 MB / 0.9172 GB, free: 51.89 MB / 0.5762 GB Notification: Performance of SimCode: time 1.313e-06/1.845, allocations: 0 / 0.9172 GB, free: 51.89 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4747/2.32, allocations: 146.3 MB / 1.06 GB, free: 140.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.24/25.56, allocations: 0.75 kB / 1.06 GB, free: 140.2 MB / 0.5762 GB " [Timeout remaining time 634] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.615336147136986] 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'] 25.741480636876076 25.756865572 24.951210606 Calling exit ...