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.SMR_DOL.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.001744/0.001744, allocations: 121.6 kB / 18.5 MB, free: 4.578 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.002176/0.002176, allocations: 205 kB / 21.45 MB, free: 1.629 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.505/1.505, allocations: 230.5 MB / 254.8 MB, free: 15.29 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.SMR_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",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.001925/0.001925, allocations: 67.83 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1037, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01216/0.1158, allocations: 10.28 MB / 437.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006498/0.1223, allocations: 3.318 MB / 440.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001642/0.124, allocations: 79.44 kB / 440.7 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.1261, allocations: 0.7454 MB / 441.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.1292, allocations: 0.8777 MB / 442.3 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1303, allocations: 431.3 kB / 442.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003944/0.1342, allocations: 2.988 MB / 445.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.1365, allocations: 1.778 MB / 447.5 MB, free: 196 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2108/0.3473, allocations: 1.391 MB / 448.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002973/0.3503, allocations: 1.743 MB / 450.6 MB, free: 10 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008379/0.3511, allocations: 354.1 kB / 451 MB, free: 10 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.3524, allocations: 469.4 kB / 451.4 MB, free: 10 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.3534, allocations: 1.022 MB / 452.5 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002389/0.3558, allocations: 1.616 MB / 454.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007183/0.363, allocations: 4.714 MB / 458.8 MB, free: 8.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.363, allocations: 0.7031 kB / 458.8 MB, free: 8.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.363, allocations: 4.344 kB / 458.8 MB, free: 8.867 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.3632, allocations: 1.031 kB / 458.8 MB, free: 8.867 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.01101/0.3742, allocations: 3.353 MB / 462.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3743, allocations: 10.66 kB / 462.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007049/0.375, allocations: 336.5 kB / 462.5 MB, free: 7.164 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001429/0.3764, allocations: 381.1 kB / 462.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003515/0.3799, allocations: 1.789 MB / 464.7 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.3801, allocations: 175.7 kB / 464.8 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004904/0.3806, allocations: 238.6 kB / 465.1 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00584/0.3864, allocations: 3.134 MB / 468.2 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.347e-05/0.3865, allocations: 13.34 kB / 468.2 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/0.3867, allocations: 95.17 kB / 468.3 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.3868, allocations: 111 kB / 468.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004574/0.3914, allocations: 2.693 MB / 471.1 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01699/0.4084, allocations: 9.642 MB / 480.7 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003248/0.4116, allocations: 2.085 MB / 482.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002096/0.4137, allocations: 1.044 MB / 483.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003567/0.4141, allocations: 204.4 kB / 484.1 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.153e-05/0.4141, allocations: 45.56 kB / 484.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.805e-06/0.4141, allocations: 2.719 kB / 484.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01583/0.43, allocations: 6.867 MB / 491 MB, free: 6.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.43, allocations: 67 kB / 491 MB, free: 6.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/0.433, allocations: 1.755 MB / 492.8 MB, free: 5.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002334/0.4332, allocations: 50.89 kB / 492.9 MB, free: 5.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.4344, allocations: 1.195 MB / 494 MB, free: 4.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005353/0.435, allocations: 474.4 kB / 494.5 MB, free: 3.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000581/0.4355, allocations: 287.4 kB / 494.8 MB, free: 3.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002689/0.4358, allocations: 305.1 kB / 495.1 MB, free: 3.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001472/0.4373, allocations: 0.8028 MB / 495.9 MB, free: 2.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.439, allocations: 1.195 MB / 497.1 MB, free: 1.195 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0032/0.4422, allocations: 2.098 MB / 499.2 MB, free: 14.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.4422, allocations: 5.219 kB / 499.2 MB, free: 14.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00507/0.4473, allocations: 2.673 MB / 0.4901 GB, free: 12.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.4473, allocations: 12.34 kB / 0.4901 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.421e-05/0.4473, allocations: 16 kB / 0.4901 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.4484, allocations: 425.9 kB / 0.4905 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/0.4499, allocations: 361 kB / 0.4909 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008207/0.4581, allocations: 7.068 MB / 0.4978 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/0.46, allocations: 115.8 kB / 0.4979 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002038/0.4602, allocations: 60 kB / 0.498 GB, free: 3.965 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001738/0.462, allocations: 0.7982 MB / 0.4987 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004787/0.4624, allocations: 190.8 kB / 0.4989 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004516/0.467, allocations: 2.375 MB / 0.5012 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.467, allocations: 18.56 kB / 0.5012 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.467, allocations: 8 kB / 0.5013 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.467, allocations: 7.969 kB / 0.5013 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009897/0.4769, allocations: 5.096 MB / 0.5062 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/0.4769, allocations: 4 kB / 0.5062 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.478, allocations: 226.3 kB / 0.5065 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.4792, allocations: 466.1 kB / 0.5069 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.4793, allocations: 31.98 kB / 0.5069 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009778/0.4891, allocations: 8.646 MB / 0.5154 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.4891, allocations: 4 kB / 0.5154 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006554/0.4957, allocations: 3.53 MB / 0.5188 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.497, allocations: 439.8 kB / 0.5192 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/0.4973, allocations: 35.98 kB / 0.5193 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009909/0.4983, allocations: 83.91 kB / 0.5194 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003404/0.4987, allocations: 115.4 kB / 0.5195 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.4988, allocations: 43.98 kB / 0.5195 GB, free: 13.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00217/0.5009, allocations: 1.203 MB / 0.5207 GB, free: 12.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5009, allocations: 0 / 0.5207 GB, free: 12.03 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002113/0.5031, allocations: 0.5117 MB / 0.5212 GB, free: 11.52 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,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.00647/0.5095, allocations: 4.167 MB / 0.5253 GB, free: 7.293 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004352/0.5139, allocations: 2.399 MB / 0.5276 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.5139, allocations: 4 kB / 0.5276 GB, free: 4.883 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00277/0.5167, allocations: 1.544 MB / 0.5291 GB, free: 3.316 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/0.5193, allocations: 476.7 kB / 0.5296 GB, free: 2.867 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03579/0.5551, allocations: 19.54 MB / 0.5487 GB, free: 14.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.5572, allocations: 2.005 MB / 0.5506 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001451/0.5587, allocations: 447.5 kB / 0.551 GB, free: 12.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001469/0.5601, allocations: 0.9249 MB / 0.5519 GB, free: 11.35 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5601, allocations: 0 / 0.5519 GB, free: 11.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1315/0.6917, allocations: 48.42 MB / 0.5992 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.7/26.39, allocations: 3.938 kB / 0.5992 GB, free: 11.44 MB / 0.4981 GB " [Timeout remaining time 633] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --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_SMR_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.998460818082094] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smr.is[1]', 'smr.is[2]', 'smr.idq_rr[1]', 'smr.idq_rr[2]', 'smr.idq_sr[1]', 'smr.idq_sr[2]'] 26.502316400874406 26.526420662 26.158340483 Calling exit ...