Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.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.00132/0.00132, 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.001475/0.001475, allocations: 212 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.529/1.529, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_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.001939/0.001939, allocations: 68.75 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2953, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01485/0.3101, allocations: 11.62 MB / 443.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008498/0.3186, allocations: 3.951 MB / 447.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002437/0.3211, allocations: 79.5 kB / 447.6 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002807/0.3239, allocations: 0.8739 MB / 448.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003374/0.3273, allocations: 0.9979 MB / 449.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.3287, allocations: 0.5265 MB / 450 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004078/0.3327, allocations: 3.23 MB / 453.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.335, allocations: 1.477 MB / 454.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002212/0.3372, allocations: 1.48 MB / 456.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002883/0.3401, allocations: 1.86 MB / 458 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005642/0.3407, allocations: 384 kB / 458.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.342, allocations: 0.6791 MB / 459.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.3431, allocations: 1.095 MB / 460.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00202/0.3451, allocations: 1.723 MB / 461.9 MB, free: 8.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006074/0.3512, allocations: 5.076 MB / 467 MB, free: 3.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3512, allocations: 0 / 467 MB, free: 3.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3512, allocations: 0 / 467 MB, free: 3.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001187/0.3513, allocations: 0 / 467 MB, free: 3.66 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.007694/0.359, allocations: 3.503 MB / 470.5 MB, free: 108 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3591, allocations: 12.03 kB / 470.5 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005124/0.3596, allocations: 358.9 kB / 470.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.3613, allocations: 462.7 kB / 471.3 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003507/0.3648, allocations: 1.787 MB / 473.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.365, allocations: 201 kB / 473.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004296/0.3654, allocations: 252 kB / 473.5 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005984/0.3714, allocations: 3.251 MB / 476.8 MB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.94e-05/0.3715, allocations: 4 kB / 476.8 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/0.3717, allocations: 104 kB / 476.9 MB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001621/0.3719, allocations: 116.9 kB / 477 MB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005155/0.377, allocations: 2.701 MB / 479.7 MB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01813/0.3952, allocations: 10.11 MB / 489.8 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002286/0.3974, allocations: 1.252 MB / 491.1 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.3993, allocations: 0.9719 MB / 492 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002635/0.3996, allocations: 60.94 kB / 492.1 MB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/0.3996, allocations: 43.56 kB / 492.1 MB, free: 9.957 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.757e-06/0.3997, allocations: 0 / 492.1 MB, free: 9.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01866/0.4183, allocations: 7.076 MB / 499.2 MB, free: 2.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.4184, allocations: 68.66 kB / 499.3 MB, free: 2.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003213/0.4216, allocations: 1.885 MB / 0.4894 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001646/0.4217, allocations: 53.7 kB / 0.4895 GB, free: 0.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.4229, allocations: 1.272 MB / 0.4907 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005382/0.4234, allocations: 491.9 kB / 0.4912 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005343/0.424, allocations: 303.4 kB / 0.4915 GB, free: 14.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4241, allocations: 305.1 kB / 0.4918 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.4256, allocations: 0.8159 MB / 0.4926 GB, free: 13.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/0.4275, allocations: 1.304 MB / 0.4938 GB, free: 12.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.4311, allocations: 2.262 MB / 0.496 GB, free: 9.645 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/0.4311, allocations: 8 kB / 0.496 GB, free: 9.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005413/0.4365, allocations: 2.724 MB / 0.4987 GB, free: 6.895 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.4365, allocations: 12 kB / 0.4987 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/0.4366, allocations: 16 kB / 0.4987 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.4377, allocations: 422.5 kB / 0.4991 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.4392, allocations: 399.3 kB / 0.4995 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00714/0.4463, allocations: 5.588 MB / 0.505 GB, free: 244 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.4483, allocations: 127.9 kB / 0.5051 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/0.4485, allocations: 68 kB / 0.5052 GB, free: 48 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001675/0.4502, allocations: 0.7979 MB / 0.5059 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005444/0.4507, allocations: 206.7 kB / 0.5061 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00458/0.4553, allocations: 2.308 MB / 0.5084 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-05/0.4553, allocations: 12 kB / 0.5084 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/0.4553, allocations: 7.938 kB / 0.5084 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.4553, allocations: 7.969 kB / 0.5084 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009851/0.4652, allocations: 5.158 MB / 0.5135 GB, free: 7.398 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.4652, allocations: 11.92 kB / 0.5135 GB, free: 7.387 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.4663, allocations: 243.6 kB / 0.5137 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001295/0.4676, allocations: 466.1 kB / 0.5141 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.4677, allocations: 35.98 kB / 0.5142 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008471/0.4762, allocations: 7.025 MB / 0.521 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.4762, allocations: 15.88 kB / 0.521 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006621/0.4828, allocations: 3.505 MB / 0.5245 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.4841, allocations: 374.6 kB / 0.5248 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002863/0.4844, allocations: 39.98 kB / 0.5249 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.4856, allocations: 95.89 kB / 0.525 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002966/0.4859, allocations: 116.6 kB / 0.5251 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.486, allocations: 47.98 kB / 0.5251 GB, free: 11.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002224/0.4882, allocations: 1.307 MB / 0.5264 GB, free: 9.719 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4882, allocations: 0 / 0.5264 GB, free: 9.719 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002236/0.4904, allocations: 0.5468 MB / 0.5269 GB, free: 9.172 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007191/0.4976, allocations: 4.154 MB / 0.531 GB, free: 4.914 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004908/0.5025, allocations: 2.269 MB / 0.5332 GB, free: 2.621 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.5025, allocations: 0 / 0.5332 GB, free: 2.621 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002833/0.5054, allocations: 1.452 MB / 0.5346 GB, free: 1.129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002592/0.508, allocations: 456.4 kB / 0.5351 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2551/0.7631, allocations: 20.38 MB / 0.555 GB, free: 92.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.7644, allocations: 2.014 MB / 0.5569 GB, free: 91.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.7656, allocations: 430.9 kB / 0.5573 GB, free: 90.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009858/0.7666, allocations: 0.9991 MB / 0.5583 GB, free: 89.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/0.7666, allocations: 4 kB / 0.5583 GB, free: 89.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09253/0.8591, allocations: 50.59 MB / 0.6077 GB, free: 39.45 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/15.55, allocations: 3.938 kB / 0.6077 GB, free: 39.45 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.322235488332808] Failed to read output from testmodel.py, exit status != 0: ['time', 'constantSpeed.phi', 'smee.is[1]', 'smee.is[2]', 'smee.idq_dr[1]', 'smee.idq_rr[2]', 'smee.idq_sr[1]', 'smee.idq_sr[2]'] 15.668645286932588 15.684265969 15.32966672 Calling exit ...