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.SMR_CurrentSource.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.001731/0.001731, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002201/0.002201, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.532/1.532, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",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.002218/0.002218, allocations: 64.77 kB / 378.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2641, allocations: 53.37 MB / 432 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04765/0.3117, allocations: 40.34 MB / 472.3 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02562/0.3373, allocations: 10.7 MB / 483 MB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008895/0.3462, allocations: 366 kB / 483.4 MB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02184/0.3681, allocations: 8.667 MB / 492 MB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01364/0.3817, allocations: 3.565 MB / 495.6 MB, free: 6.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008923/0.3906, allocations: 2.431 MB / 498 MB, free: 4.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02073/0.4114, allocations: 13.04 MB / 0.4991 GB, free: 7.473 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03465/0.446, allocations: 17.37 MB / 0.516 GB, free: 5.945 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0129/0.4589, allocations: 6.978 MB / 0.5229 GB, free: 14.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01519/0.4741, allocations: 7.931 MB / 0.5306 GB, free: 6.992 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007304/0.4814, allocations: 1.953 MB / 0.5325 GB, free: 5.039 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009513/0.4909, allocations: 2.378 MB / 0.5348 GB, free: 2.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.5164/1.007, allocations: 3.968 MB / 0.5387 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02261/1.03, allocations: 7.566 MB / 0.5461 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03608/1.066, allocations: 25.96 MB / 0.5715 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/1.066, allocations: 2.719 kB / 0.5715 GB, free: 24.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/1.066, allocations: 3.938 kB / 0.5715 GB, free: 24.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009525/1.067, allocations: 0 / 0.5715 GB, free: 24.7 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05268/1.12, allocations: 15.26 MB / 0.5864 GB, free: 14.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/1.12, allocations: 7.5 kB / 0.5864 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0079/1.128, allocations: 1.707 MB / 0.588 GB, free: 13.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03351/1.161, allocations: 6.124 MB / 0.594 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02003/1.181, allocations: 8.128 MB / 0.602 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009123/1.182, allocations: 0.9014 MB / 0.6028 GB, free: 4.738 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005608/1.188, allocations: 1.191 MB / 0.604 GB, free: 3.559 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05877/1.246, allocations: 18.69 MB / 0.6223 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008476/1.247, allocations: 23.89 kB / 0.6223 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006311/1.254, allocations: 0.4965 MB / 0.6228 GB, free: 308 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009594/1.255, allocations: 0.6421 MB / 0.6234 GB, free: 15.66 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04464/1.299, allocations: 16.8 MB / 0.6398 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1358/1.435, allocations: 57.24 MB / 0.6957 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02104/1.456, allocations: 10.38 MB / 0.7058 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007375/1.463, allocations: 3.405 MB / 0.7092 GB, free: 9.238 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02164/1.485, allocations: 8.545 MB / 0.7175 GB, free: 0.8008 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.782e-05/1.485, allocations: 77.25 kB / 0.7176 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.663e-06/1.485, allocations: 0 / 0.7176 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04596/1.531, allocations: 17.28 MB / 0.7345 GB, free: 15.46 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.138e-05/1.531, allocations: 98.45 kB / 0.7345 GB, free: 15.36 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01258/1.544, allocations: 5.042 MB / 0.7395 GB, free: 10.32 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008838/1.545, allocations: 85.7 kB / 0.7396 GB, free: 10.23 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005382/1.55, allocations: 5.641 MB / 0.7451 GB, free: 4.578 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002255/1.552, allocations: 1.416 MB / 0.7464 GB, free: 3.18 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004736/1.557, allocations: 1.334 MB / 0.7477 GB, free: 1.836 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001417/1.557, allocations: 305.1 kB / 0.748 GB, free: 1.535 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2792/1.836, allocations: 2.906 MB / 0.7509 GB, free: 202.7 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007727/1.844, allocations: 5.878 MB / 0.7566 GB, free: 199 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/1.857, allocations: 9.457 MB / 0.7658 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001609/1.857, allocations: 28.09 kB / 0.7659 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01771/1.874, allocations: 9.874 MB / 0.7755 GB, free: 191.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.875, allocations: 46.62 kB / 0.7756 GB, free: 191.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001778/1.875, allocations: 101.6 kB / 0.7757 GB, free: 191.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/1.877, allocations: 0.9336 MB / 0.7766 GB, free: 190.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005563/1.883, allocations: 1.591 MB / 0.7781 GB, free: 190.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/1.894, allocations: 9.891 MB / 0.7878 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006567/1.9, allocations: 408.3 kB / 0.7882 GB, free: 184 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/1.902, allocations: 352.8 kB / 0.7885 GB, free: 184 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01078/1.913, allocations: 4.248 MB / 0.7927 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002114/1.915, allocations: 0.5411 MB / 0.7932 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/1.928, allocations: 6.461 MB / 0.7995 GB, free: 177.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.699e-05/1.928, allocations: 44 kB / 0.7995 GB, free: 177.7 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.131e-05/1.928, allocations: 11.94 kB / 0.7996 GB, free: 177.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.537e-05/1.928, allocations: 18.84 kB / 0.7996 GB, free: 177.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03581/1.964, allocations: 15.74 MB / 0.8149 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.964, allocations: 4 kB / 0.8149 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003277/1.967, allocations: 0.7505 MB / 0.8157 GB, free: 164.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/1.969, allocations: 0.7865 MB / 0.8164 GB, free: 163.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005517/1.97, allocations: 93.27 kB / 0.8165 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009616/1.98, allocations: 9.049 MB / 0.8254 GB, free: 154.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.98, allocations: 7.938 kB / 0.8254 GB, free: 154.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/1.996, allocations: 9.52 MB / 0.8347 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003364/1.999, allocations: 1.038 MB / 0.8357 GB, free: 144.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001673/2.001, allocations: 68 kB / 0.8358 GB, free: 144.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003397/2.004, allocations: 219.8 kB / 0.836 GB, free: 144.2 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008584/2.005, allocations: 286.5 kB / 0.8362 GB, free: 143.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004924/2.006, allocations: 120 kB / 0.8364 GB, free: 143.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006857/2.012, allocations: 3.359 MB / 0.8396 GB, free: 140.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/2.012, allocations: 0 / 0.8396 GB, free: 140.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009227/2.022, allocations: 1.883 MB / 0.8415 GB, free: 138.6 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,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.01601/2.038, allocations: 10.23 MB / 0.8515 GB, free: 128.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01301/2.051, allocations: 7.229 MB / 0.8585 GB, free: 121 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.044e-06/2.051, allocations: 0 / 0.8585 GB, free: 121 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005378/2.056, allocations: 3.183 MB / 0.8616 GB, free: 117.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009076/2.065, allocations: 1.304 MB / 0.8629 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1326/2.198, allocations: 65.28 MB / 0.9267 GB, free: 47.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01467/2.212, allocations: 7.333 MB / 0.9338 GB, free: 40.03 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007322/2.22, allocations: 2.152 MB / 0.9359 GB, free: 37.87 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008529/2.228, allocations: 4.35 MB / 0.9402 GB, free: 33.52 MB / 0.5763 GB Notification: Performance of SimCode: time 1.744e-06/2.228, allocations: 2.953 kB / 0.9402 GB, free: 33.52 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5099/2.738, allocations: 154.7 MB / 1.091 GB, free: 115.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.38/26.11, allocations: 3.938 kB / 1.091 GB, free: 115.3 MB / 0.5763 GB " [Timeout remaining time 634] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.924432158935815] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaLoad.phi', 'inertiaLoad.w', 'inertiaLoadQS.phi', 'inertiaLoadQS.w', 'dqToThreePhase.y[1]', 'dqToThreePhase.y[2]', 'dqToThreePhase.y[3]'] 26.29519767081365 26.313386261 25.243187253 Calling exit ...