Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.001928/0.001928, allocations: 108.5 kB / 21.18 MB, free: 0.6992 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.002595/0.002595, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 51.94 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.263, allocations: 49.16 MB / 396.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03206/0.295, allocations: 30.44 MB / 426.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0224/0.3174, allocations: 8.681 MB / 435.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008234/0.3257, allocations: 204.4 kB / 435.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01424/0.3399, allocations: 4.998 MB / 440.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01209/0.352, allocations: 3.074 MB / 443.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005847/0.3578, allocations: 1.66 MB / 445.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01335/0.3712, allocations: 8.775 MB / 454.2 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01455/0.3857, allocations: 9.205 MB / 463.4 MB, free: 20 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00729/0.393, allocations: 4.336 MB / 467.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00783/0.4009, allocations: 4.808 MB / 472.5 MB, free: 6.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002583/0.4034, allocations: 1.164 MB / 473.7 MB, free: 5.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004299/0.4077, allocations: 1.531 MB / 475.2 MB, free: 4.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00284/0.4106, allocations: 2.419 MB / 477.7 MB, free: 1.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008797/0.4194, allocations: 4.669 MB / 482.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0225/0.4419, allocations: 15.77 MB / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4419, allocations: 0 / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4419, allocations: 0 / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003905/0.4423, allocations: 0 / 498.1 MB, free: 13.21 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02697/0.4692, allocations: 9.857 MB / 0.4961 GB, free: 3.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.4693, allocations: 15.98 kB / 0.4961 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002694/0.472, allocations: 1.145 MB / 0.4972 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02947/0.5015, allocations: 5.317 MB / 0.5024 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01125/0.5127, allocations: 4.703 MB / 0.507 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005858/0.5133, allocations: 0.5338 MB / 0.5075 GB, free: 7.441 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002893/0.5162, allocations: 0.7069 MB / 0.5082 GB, free: 6.734 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02893/0.5451, allocations: 11.32 MB / 0.5192 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003111/0.5454, allocations: 23.91 kB / 0.5193 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001964/0.5474, allocations: 296 kB / 0.5195 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005192/0.5479, allocations: 454.9 kB / 0.52 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02406/0.572, allocations: 10.81 MB / 0.5305 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2598/0.8318, allocations: 36.54 MB / 0.5662 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0125/0.8443, allocations: 7.439 MB / 0.5735 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003583/0.8479, allocations: 2.42 MB / 0.5759 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.8606, allocations: 7.492 MB / 0.5832 GB, free: 121.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.8607, allocations: 61.56 kB / 0.5832 GB, free: 121.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.569e-06/0.8607, allocations: 0.875 kB / 0.5832 GB, free: 121.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01891/0.8796, allocations: 10.29 MB / 0.5933 GB, free: 117.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001599/0.8812, allocations: 1.896 MB / 0.5951 GB, free: 115.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005639/0.8868, allocations: 3.829 MB / 0.5989 GB, free: 114.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003984/0.8872, allocations: 68.83 kB / 0.5989 GB, free: 114.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/0.8892, allocations: 3.675 MB / 0.6025 GB, free: 111.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/0.8902, allocations: 0.8672 MB / 0.6034 GB, free: 111.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/0.8914, allocations: 0.9585 MB / 0.6043 GB, free: 110.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.932e-05/0.8915, allocations: 305.1 kB / 0.6046 GB, free: 110.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.8936, allocations: 1.89 MB / 0.6064 GB, free: 109.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003034/0.8967, allocations: 4.4 MB / 0.6107 GB, free: 105 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005555/0.9022, allocations: 6.785 MB / 0.6174 GB, free: 99.11 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-05/0.9023, allocations: 25.69 kB / 0.6174 GB, free: 99.11 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.008964/0.9112, allocations: 6.984 MB / 0.6242 GB, free: 93.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.845e-05/0.9113, allocations: 43.94 kB / 0.6243 GB, free: 93.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.348e-05/0.9114, allocations: 94.33 kB / 0.6243 GB, free: 93.71 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00169/0.9131, allocations: 0.7397 MB / 0.6251 GB, free: 92.96 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/0.9163, allocations: 1.119 MB / 0.6262 GB, free: 91.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005751/0.9221, allocations: 5.53 MB / 0.6316 GB, free: 86.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003794/0.9259, allocations: 307.4 kB / 0.6319 GB, free: 85.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005858/0.9265, allocations: 283.9 kB / 0.6321 GB, free: 85.61 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003688/0.9302, allocations: 2.526 MB / 0.6346 GB, free: 83.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000844/0.931, allocations: 401.4 kB / 0.635 GB, free: 82.67 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006586/0.9376, allocations: 4.255 MB / 0.6391 GB, free: 78.39 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.9376, allocations: 24 kB / 0.6392 GB, free: 78.37 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.9376, allocations: 8 kB / 0.6392 GB, free: 78.36 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-05/0.9377, allocations: 15.89 kB / 0.6392 GB, free: 78.35 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02016/0.9578, allocations: 13.95 MB / 0.6528 GB, free: 64.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.9578, allocations: 12 kB / 0.6528 GB, free: 64.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/0.9595, allocations: 480.1 kB / 0.6533 GB, free: 63.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001701/0.9612, allocations: 0.6967 MB / 0.6539 GB, free: 63.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.9614, allocations: 67.98 kB / 0.654 GB, free: 62.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007011/0.9684, allocations: 7.292 MB / 0.6611 GB, free: 55.43 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001219/0.9696, allocations: 1.85 MB / 0.6629 GB, free: 53.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008114/0.9778, allocations: 6.735 MB / 0.6695 GB, free: 46.45 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/0.9798, allocations: 0.7511 MB / 0.6702 GB, free: 45.69 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006442/0.9804, allocations: 67.92 kB / 0.6703 GB, free: 45.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.9821, allocations: 167.8 kB / 0.6705 GB, free: 45.46 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/0.9824, allocations: 229.4 kB / 0.6707 GB, free: 45.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.9826, allocations: 83.98 kB / 0.6708 GB, free: 45.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00298/0.9856, allocations: 2.513 MB / 0.6732 GB, free: 42.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.9856, allocations: 0 / 0.6732 GB, free: 42.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004315/0.9899, allocations: 1.297 MB / 0.6745 GB, free: 41.37 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008278/0.9982, allocations: 7.425 MB / 0.6817 GB, free: 33.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007311/1.005, allocations: 4.82 MB / 0.6864 GB, free: 28.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/1.005, allocations: 4 kB / 0.6865 GB, free: 28.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0035/1.009, allocations: 2.185 MB / 0.6886 GB, free: 26.62 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005057/1.014, allocations: 0.9899 MB / 0.6896 GB, free: 25.63 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07002/1.084, allocations: 46.28 MB / 0.7347 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006101/1.09, allocations: 4.504 MB / 0.7391 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00424/1.094, allocations: 1.36 MB / 0.7405 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004257/1.099, allocations: 2.538 MB / 0.7429 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of SimCode: time 1.332e-06/1.099, allocations: 0 / 0.7429 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3698/1.468, allocations: 109 MB / 0.8494 GB, free: 104.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.24/23.7, allocations: 3.938 kB / 0.8494 GB, free: 104.8 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.245295150001766] Failed to read output from testmodel.py, exit status != 0: ['time', 'Vtr', 'Vqs'] 23.888382413002546 23.907961815 23.462026149 Calling exit ...