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.001732/0.001732, allocations: 122.7 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.002116/0.002116, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.553/1.553, allocations: 230.4 MB / 254.7 MB, free: 15.01 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.001908/0.001908, allocations: 71.83 kB / 373.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1032, allocations: 53.31 MB / 426.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2648/0.3681, allocations: 40.23 MB / 467.2 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02563/0.3937, allocations: 10.68 MB / 477.8 MB, free: 8.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009371/0.4031, allocations: 307 kB / 478.1 MB, free: 8.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02221/0.4253, allocations: 8.639 MB / 486.8 MB, free: 2.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01452/0.4398, allocations: 3.493 MB / 490.3 MB, free: 15.53 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008547/0.4483, allocations: 2.367 MB / 492.6 MB, free: 13.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02094/0.4693, allocations: 12.97 MB / 0.4938 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04198/0.5113, allocations: 19.63 MB / 0.5129 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01288/0.5241, allocations: 6.837 MB / 0.5196 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01462/0.5388, allocations: 7.903 MB / 0.5273 GB, free: 15.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006278/0.545, allocations: 1.953 MB / 0.5292 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008968/0.554, allocations: 2.371 MB / 0.5316 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009231/0.5632, allocations: 3.978 MB / 0.5354 GB, free: 7.281 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0168/0.58, allocations: 7.556 MB / 0.5428 GB, free: 15.69 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03984/0.6199, allocations: 25.97 MB / 0.5682 GB, free: 5.645 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.6199, allocations: 4 kB / 0.5682 GB, free: 5.641 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6199, allocations: 0 / 0.5682 GB, free: 5.641 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.000829/0.6207, allocations: 3.938 kB / 0.5682 GB, free: 5.637 MB / 478.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.05275/0.6735, allocations: 15.32 MB / 0.5831 GB, free: 6.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/0.6735, allocations: 19.95 kB / 0.5832 GB, free: 6.164 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006832/0.6804, allocations: 1.711 MB / 0.5848 GB, free: 4.441 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03556/0.7159, allocations: 6.127 MB / 0.5908 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02402/0.7399, allocations: 8.1 MB / 0.5987 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001201/0.7411, allocations: 0.9071 MB / 0.5996 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004994/0.7461, allocations: 1.199 MB / 0.6008 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05232/0.7985, allocations: 18.68 MB / 0.619 GB, free: 1.238 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000669/0.7991, allocations: 27.83 kB / 0.6191 GB, free: 1.211 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003889/0.803, allocations: 0.496 MB / 0.6195 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007928/0.8038, allocations: 0.6382 MB / 0.6202 GB, free: 76 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4412/1.245, allocations: 16.8 MB / 0.6366 GB, free: 144.6 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1036/1.349, allocations: 58.99 MB / 0.6942 GB, free: 99.81 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02088/1.37, allocations: 32.81 MB / 0.7262 GB, free: 63.12 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005576/1.375, allocations: 3.41 MB / 0.7295 GB, free: 59.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01742/1.393, allocations: 8.876 MB / 0.7382 GB, free: 50.95 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/1.393, allocations: 73.31 kB / 0.7383 GB, free: 50.87 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.902e-06/1.393, allocations: 0 / 0.7383 GB, free: 50.87 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03427/1.427, allocations: 17.73 MB / 0.7556 GB, free: 33.51 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/1.427, allocations: 94.47 kB / 0.7557 GB, free: 33.41 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008501/1.435, allocations: 5.042 MB / 0.7606 GB, free: 28.44 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008003/1.436, allocations: 89.7 kB / 0.7607 GB, free: 28.34 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002982/1.439, allocations: 5.642 MB / 0.7662 GB, free: 22.74 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001648/1.441, allocations: 1.424 MB / 0.7676 GB, free: 21.34 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00392/1.445, allocations: 1.331 MB / 0.7689 GB, free: 20 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.547e-05/1.445, allocations: 305.1 kB / 0.7692 GB, free: 19.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004725/1.45, allocations: 2.91 MB / 0.772 GB, free: 16.78 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005677/1.455, allocations: 5.885 MB / 0.7778 GB, free: 9.492 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/1.467, allocations: 9.458 MB / 0.787 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.467, allocations: 28 kB / 0.787 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02507/1.492, allocations: 9.867 MB / 0.7967 GB, free: 4.641 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001617/1.492, allocations: 48 kB / 0.7967 GB, free: 4.594 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002352/1.492, allocations: 100.4 kB / 0.7968 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002988/1.495, allocations: 0.9402 MB / 0.7977 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00675/1.502, allocations: 1.583 MB / 0.7993 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/1.518, allocations: 10.18 MB / 0.8092 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006384/1.524, allocations: 415.4 kB / 0.8096 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001607/1.526, allocations: 355.9 kB / 0.81 GB, free: 6.598 MB / 0.545 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.01008/1.536, allocations: 4.251 MB / 0.8141 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/1.538, allocations: 0.5395 MB / 0.8146 GB, free: 1.789 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01636/1.554, allocations: 6.465 MB / 0.821 GB, free: 11.27 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.434e-05/1.554, allocations: 40 kB / 0.821 GB, free: 11.23 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.559e-05/1.555, allocations: 8 kB / 0.821 GB, free: 11.23 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/1.555, allocations: 19.92 kB / 0.821 GB, free: 11.21 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2733/1.828, allocations: 15.71 MB / 0.8364 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.828, allocations: 3.875 kB / 0.8364 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/1.831, allocations: 0.748 MB / 0.8371 GB, free: 177.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/1.833, allocations: 0.7869 MB / 0.8379 GB, free: 177.3 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006001/1.834, allocations: 89.55 kB / 0.8379 GB, free: 177.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/1.845, allocations: 9.357 MB / 0.8471 GB, free: 171.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/1.845, allocations: 7.953 kB / 0.8471 GB, free: 171.7 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01668/1.861, allocations: 9.516 MB / 0.8564 GB, free: 167.8 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003717/1.865, allocations: 1.089 MB / 0.8574 GB, free: 167.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001634/1.867, allocations: 70.72 kB / 0.8575 GB, free: 167.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003339/1.87, allocations: 225.3 kB / 0.8577 GB, free: 167.3 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007865/1.871, allocations: 263.9 kB / 0.858 GB, free: 167.3 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003069/1.871, allocations: 118 kB / 0.8581 GB, free: 167.3 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.007664/1.879, allocations: 3.365 MB / 0.8614 GB, free: 166.1 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.31e-07/1.879, allocations: 1.406 kB / 0.8614 GB, free: 166.1 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.0103/1.889, allocations: 1.886 MB / 0.8632 GB, free: 165.9 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.01701/1.906, allocations: 10.25 MB / 0.8732 GB, free: 161.4 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01133/1.917, allocations: 7.375 MB / 0.8804 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/1.917, allocations: 5.938 kB / 0.8804 GB, free: 158.4 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005169/1.922, allocations: 3.322 MB / 0.8837 GB, free: 156.8 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008035/1.931, allocations: 1.305 MB / 0.885 GB, free: 156.2 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1177/2.048, allocations: 65.1 MB / 0.9485 GB, free: 92.46 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01252/2.061, allocations: 7.333 MB / 0.9557 GB, free: 85.09 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006619/2.067, allocations: 2.155 MB / 0.9578 GB, free: 82.93 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006599/2.074, allocations: 4.35 MB / 0.962 GB, free: 78.58 MB / 0.5607 GB Notification: Performance of SimCode: time 1.353e-06/2.074, allocations: 0 / 0.962 GB, free: 78.58 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.47/2.544, allocations: 149 MB / 1.108 GB, free: 153.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.36/24.9, allocations: 9.016 kB / 1.108 GB, free: 153.2 MB / 0.5763 GB " [Timeout remaining time 635] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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: 27.91362658329308] 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.070440189912915 25.078395405 24.456115627 Calling exit ...