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.00194/0.00194, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.002303/0.002303, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.614/1.614, allocations: 230.5 MB / 254.8 MB, free: 15.26 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.001973/0.001973, allocations: 71.83 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1113, allocations: 53.32 MB / 427.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2939/0.4052, allocations: 40.24 MB / 467.3 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02476/0.43, allocations: 10.68 MB / 478 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01238/0.4423, allocations: 369.4 kB / 478.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02328/0.4656, allocations: 8.645 MB / 487 MB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.014/0.4796, allocations: 3.482 MB / 490.5 MB, free: 5.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008162/0.4878, allocations: 2.375 MB / 492.8 MB, free: 3.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02193/0.5097, allocations: 12.96 MB / 0.4939 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04021/0.5499, allocations: 19.64 MB / 0.5131 GB, free: 9.465 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01367/0.5636, allocations: 6.943 MB / 0.5199 GB, free: 2.504 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01537/0.5789, allocations: 7.911 MB / 0.5276 GB, free: 10.56 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006891/0.5858, allocations: 1.953 MB / 0.5295 GB, free: 8.609 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008962/0.5948, allocations: 2.367 MB / 0.5319 GB, free: 6.246 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008753/0.6035, allocations: 3.963 MB / 0.5357 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01845/0.622, allocations: 7.572 MB / 0.5431 GB, free: 10.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04079/0.6628, allocations: 25.97 MB / 0.5685 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.204e-05/0.6628, allocations: 4 kB / 0.5685 GB, free: 0.6172 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6628, allocations: 4 kB / 0.5685 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008044/0.6636, allocations: 4 kB / 0.5685 GB, free: 0.6094 MB / 462.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.05178/0.7154, allocations: 15.33 MB / 0.5835 GB, free: 1.141 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.7154, allocations: 8.031 kB / 0.5835 GB, free: 1.133 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006635/0.7221, allocations: 1.711 MB / 0.5851 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03589/0.758, allocations: 6.127 MB / 0.5911 GB, free: 9.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02022/0.7782, allocations: 8.1 MB / 0.599 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001457/0.7796, allocations: 0.8993 MB / 0.5999 GB, free: 192 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00623/0.7859, allocations: 1.199 MB / 0.6011 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05549/0.8414, allocations: 18.69 MB / 0.6193 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007224/0.8421, allocations: 19.91 kB / 0.6194 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004933/0.847, allocations: 0.496 MB / 0.6198 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009495/0.848, allocations: 0.646 MB / 0.6205 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4982/1.346, allocations: 16.8 MB / 0.6369 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1056/1.452, allocations: 58.98 MB / 0.6945 GB, free: 103 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02045/1.472, allocations: 32.81 MB / 0.7265 GB, free: 70.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005615/1.478, allocations: 3.416 MB / 0.7298 GB, free: 68.93 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01611/1.494, allocations: 8.883 MB / 0.7385 GB, free: 61.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.912e-05/1.494, allocations: 69.3 kB / 0.7386 GB, free: 61.42 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.36e-06/1.494, allocations: 0 / 0.7386 GB, free: 61.42 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.0353/1.529, allocations: 17.73 MB / 0.7559 GB, free: 44.05 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/1.529, allocations: 94.47 kB / 0.756 GB, free: 43.95 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007029/1.536, allocations: 5.038 MB / 0.7609 GB, free: 38.98 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007339/1.537, allocations: 89.7 kB / 0.761 GB, free: 38.89 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002506/1.54, allocations: 5.649 MB / 0.7665 GB, free: 33.29 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001507/1.541, allocations: 1.419 MB / 0.7679 GB, free: 31.88 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001977/1.543, allocations: 1.331 MB / 0.7692 GB, free: 30.54 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.705e-05/1.543, allocations: 313.1 kB / 0.7695 GB, free: 30.23 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003986/1.547, allocations: 2.91 MB / 0.7723 GB, free: 27.32 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005684/1.553, allocations: 5.875 MB / 0.7781 GB, free: 20.04 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/1.564, allocations: 9.452 MB / 0.7873 GB, free: 9.148 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/1.564, allocations: 32 kB / 0.7873 GB, free: 9.117 MB / 0.5138 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01836/1.582, allocations: 9.867 MB / 0.797 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/1.582, allocations: 48 kB / 0.797 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001822/1.583, allocations: 100 kB / 0.7971 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003088/1.586, allocations: 0.9443 MB / 0.798 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006734/1.592, allocations: 1.587 MB / 0.7996 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/1.608, allocations: 10.19 MB / 0.8095 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005946/1.614, allocations: 399.5 kB / 0.8099 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001507/1.616, allocations: 360 kB / 0.8103 GB, free: 1.148 MB / 0.5294 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.01009/1.626, allocations: 4.253 MB / 0.8144 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002253/1.628, allocations: 0.5395 MB / 0.8149 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01734/1.645, allocations: 6.466 MB / 0.8213 GB, free: 5.824 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.045e-05/1.645, allocations: 43.98 kB / 0.8213 GB, free: 5.781 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.881e-05/1.645, allocations: 12 kB / 0.8213 GB, free: 5.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.096e-05/1.645, allocations: 19.92 kB / 0.8213 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04089/1.686, allocations: 15.71 MB / 0.8367 GB, free: 5.996 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/1.686, allocations: 4 kB / 0.8367 GB, free: 5.992 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003975/1.69, allocations: 0.757 MB / 0.8374 GB, free: 5.234 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002721/1.693, allocations: 0.785 MB / 0.8382 GB, free: 4.434 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007989/1.694, allocations: 87.97 kB / 0.8383 GB, free: 4.348 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2706/1.965, allocations: 9.359 MB / 0.8474 GB, free: 173.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.965, allocations: 3.469 kB / 0.8474 GB, free: 173.5 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01686/1.981, allocations: 9.523 MB / 0.8567 GB, free: 170.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003155/1.985, allocations: 1.083 MB / 0.8578 GB, free: 170.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001416/1.986, allocations: 72.88 kB / 0.8578 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003448/1.989, allocations: 217.3 kB / 0.858 GB, free: 170.2 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008218/1.99, allocations: 273 kB / 0.8583 GB, free: 170.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000322/1.991, allocations: 116.8 kB / 0.8584 GB, free: 170.1 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007606/1.998, allocations: 3.362 MB / 0.8617 GB, free: 168.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.91e-07/1.998, allocations: 0 / 0.8617 GB, free: 168.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009704/2.008, allocations: 1.882 MB / 0.8635 GB, free: 168.7 MB / 0.5607 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.01878/2.027, allocations: 10.25 MB / 0.8735 GB, free: 164.3 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01237/2.039, allocations: 7.377 MB / 0.8807 GB, free: 161.3 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/2.039, allocations: 0 / 0.8807 GB, free: 161.3 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006742/2.046, allocations: 3.326 MB / 0.884 GB, free: 159.7 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009044/2.055, allocations: 1.304 MB / 0.8853 GB, free: 159.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1126/2.167, allocations: 65.1 MB / 0.9488 GB, free: 102.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01107/2.178, allocations: 7.325 MB / 0.956 GB, free: 94.95 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005805/2.184, allocations: 2.152 MB / 0.9581 GB, free: 92.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006612/2.191, allocations: 4.361 MB / 0.9624 GB, free: 88.43 MB / 0.5607 GB Notification: Performance of SimCode: time 1.964e-06/2.191, allocations: 0 / 0.9624 GB, free: 88.43 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.463/2.654, allocations: 149 MB / 1.108 GB, free: 169 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.97/25.63, allocations: 6.734 kB / 1.108 GB, free: 169 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.62122079078108] 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]'] 25.800359446089715 25.813963263 25.147437429 Calling exit ...