Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 116.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 218.9 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.405/1.405, allocations: 230.6 MB / 254.8 MB, free: 15.1 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_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_1_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.001454/0.001454, allocations: 47.91 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1015, allocations: 53.32 MB / 427.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2152/0.3167, allocations: 41.93 MB / 469 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0259/0.3426, allocations: 11.42 MB / 480.4 MB, free: 6.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009746/0.3523, allocations: 355.4 kB / 480.8 MB, free: 6.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01913/0.3715, allocations: 8 MB / 488.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01318/0.3846, allocations: 3.669 MB / 492.4 MB, free: 13.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007678/0.3923, allocations: 2.315 MB / 494.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01986/0.4122, allocations: 12.56 MB / 0.4954 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0323/0.4445, allocations: 17.87 MB / 0.5129 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01207/0.4565, allocations: 6.498 MB / 0.5192 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01231/0.4689, allocations: 7.326 MB / 0.5264 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004381/0.4732, allocations: 1.824 MB / 0.5281 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006791/0.48, allocations: 2.269 MB / 0.5304 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005378/0.4854, allocations: 3.662 MB / 0.5339 GB, free: 8.898 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01355/0.499, allocations: 7.093 MB / 0.5409 GB, free: 1.777 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03343/0.5324, allocations: 24.12 MB / 0.5644 GB, free: 9.582 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.5324, allocations: 0 / 0.5644 GB, free: 9.582 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5324, allocations: 0 / 0.5644 GB, free: 9.582 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0006081/0.533, allocations: 0 / 0.5644 GB, free: 9.582 MB / 478.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.04541/0.5784, allocations: 14.51 MB / 0.5786 GB, free: 10.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/0.5785, allocations: 12.03 kB / 0.5786 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0006499/0.5791, allocations: 344.2 kB / 0.5789 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007568/0.5867, allocations: 1.746 MB / 0.5806 GB, free: 8.836 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03069/0.6174, allocations: 5.217 MB / 0.5857 GB, free: 3.605 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/0.6349, allocations: 7.769 MB / 0.5933 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009655/0.6359, allocations: 0.8346 MB / 0.5941 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004098/0.64, allocations: 1.101 MB / 0.5952 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04309/0.6831, allocations: 16.63 MB / 0.6114 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005002/0.6836, allocations: 19.83 kB / 0.6115 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003423/0.687, allocations: 464 kB / 0.6119 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006981/0.6877, allocations: 0.5734 MB / 0.6125 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3907/1.078, allocations: 14.79 MB / 0.6269 GB, free: 147.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08875/1.167, allocations: 57.42 MB / 0.683 GB, free: 108.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01536/1.182, allocations: 20.81 MB / 0.7033 GB, free: 88.64 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004725/1.187, allocations: 3.05 MB / 0.7063 GB, free: 86.04 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01617/1.203, allocations: 10.42 MB / 0.7165 GB, free: 75.61 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/1.203, allocations: 69.5 kB / 0.7165 GB, free: 75.53 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=317): time 4.949e-06/1.203, allocations: 4 kB / 0.7165 GB, free: 75.52 MB / 0.5138 GB Notification: Performance of matching and sorting (n=407): time 0.04642/1.25, allocations: 23.36 MB / 0.7393 GB, free: 52.46 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/1.25, allocations: 124.5 kB / 0.7395 GB, free: 52.31 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00798/1.258, allocations: 5.197 MB / 0.7445 GB, free: 47.19 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000601/1.258, allocations: 89.7 kB / 0.7446 GB, free: 47.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002301/1.261, allocations: 5.356 MB / 0.7499 GB, free: 41.79 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001204/1.262, allocations: 1.486 MB / 0.7513 GB, free: 40.32 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002499/1.264, allocations: 1.37 MB / 0.7526 GB, free: 38.95 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.601e-05/1.265, allocations: 301.1 kB / 0.7529 GB, free: 38.65 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004134/1.269, allocations: 3.07 MB / 0.7559 GB, free: 35.57 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/1.274, allocations: 5.903 MB / 0.7617 GB, free: 28.35 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009867/1.284, allocations: 9.483 MB / 0.771 GB, free: 17.51 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-05/1.284, allocations: 28 kB / 0.771 GB, free: 17.48 MB / 0.5138 GB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01714/1.301, allocations: 10.9 MB / 0.7816 GB, free: 6.488 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.693e-05/1.301, allocations: 52.5 kB / 0.7817 GB, free: 6.438 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001166/1.301, allocations: 92 kB / 0.7818 GB, free: 6.348 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003945/1.305, allocations: 1.624 MB / 0.7833 GB, free: 4.707 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005455/1.311, allocations: 1.532 MB / 0.7848 GB, free: 3.172 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02542/1.336, allocations: 19.35 MB / 0.8037 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005823/1.342, allocations: 427.3 kB / 0.8041 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/1.343, allocations: 363.9 kB / 0.8045 GB, free: 14.36 MB / 0.545 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.007894/1.351, allocations: 3.833 MB / 0.8082 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001851/1.353, allocations: 0.5512 MB / 0.8088 GB, free: 9.961 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01633/1.369, allocations: 7.513 MB / 0.8161 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008269/1.377, allocations: 4.218 MB / 0.8202 GB, free: 14.06 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.756e-05/1.377, allocations: 23.94 kB / 0.8202 GB, free: 14.04 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-05/1.377, allocations: 23.92 kB / 0.8203 GB, free: 14.01 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2241/1.602, allocations: 17.2 MB / 0.8371 GB, free: 178.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-05/1.602, allocations: 4.719 kB / 0.8371 GB, free: 178.7 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002982/1.605, allocations: 0.6578 MB / 0.8377 GB, free: 178.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004132/1.609, allocations: 1.503 MB / 0.8392 GB, free: 178.7 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005624/1.609, allocations: 93.53 kB / 0.8393 GB, free: 178.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02184/1.631, allocations: 21.57 MB / 0.8603 GB, free: 164.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.631, allocations: 5.406 kB / 0.8603 GB, free: 164.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01798/1.649, allocations: 10.77 MB / 0.8709 GB, free: 160.2 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002598/1.652, allocations: 1.115 MB / 0.872 GB, free: 159.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/1.653, allocations: 83.11 kB / 0.872 GB, free: 159.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003111/1.656, allocations: 226.9 kB / 0.8722 GB, free: 159.7 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009053/1.657, allocations: 316.1 kB / 0.8726 GB, free: 159.7 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002796/1.657, allocations: 123.8 kB / 0.8727 GB, free: 159.6 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005029/1.662, allocations: 3.445 MB / 0.876 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8e-08/1.662, allocations: 0 / 0.876 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007154/1.669, allocations: 1.941 MB / 0.8779 GB, free: 158.2 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.01622/1.685, allocations: 11.53 MB / 0.8892 GB, free: 153 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01196/1.697, allocations: 8.267 MB / 0.8973 GB, free: 147.7 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/1.697, allocations: 8 kB / 0.8973 GB, free: 147.7 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006773/1.704, allocations: 4.311 MB / 0.9015 GB, free: 143.9 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005778/1.71, allocations: 1.219 MB / 0.9027 GB, free: 142.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09123/1.801, allocations: 66.65 MB / 0.9678 GB, free: 75.28 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007077/1.808, allocations: 6.711 MB / 0.9743 GB, free: 68.53 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004517/1.813, allocations: 1.895 MB / 0.9762 GB, free: 66.63 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004698/1.818, allocations: 4.147 MB / 0.9802 GB, free: 62.48 MB / 0.5607 GB Notification: Performance of SimCode: time 1.443e-06/1.818, allocations: 0 / 0.9802 GB, free: 62.48 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4006/2.218, allocations: 154 MB / 1.131 GB, free: 136.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.09/23.31, allocations: 9.953 kB / 1.131 GB, free: 136.8 MB / 0.5763 GB " [Timeout remaining time 636] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_1_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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.9111633359571] 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.5379171029781 23.553140745 23.01740972 Calling exit ...