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.SMPM_Mains.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.001431/0.001431, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.0016/0.0016, allocations: 214.7 kB / 22.92 MB, free: 5.195 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.284/1.284, allocations: 230.5 MB / 256.4 MB, free: 8.27 MB / 206.1 MB " [Timeout remaining time 179] 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.SMPM_Mains,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.00178/0.00178, allocations: 67.84 kB / 376.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.2043, allocations: 53.31 MB / 429.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03987/0.2442, allocations: 38.14 MB / 467.6 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02061/0.2648, allocations: 10.33 MB / 477.9 MB, free: 6.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006293/0.2711, allocations: 279.1 kB / 478.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02054/0.2916, allocations: 9.232 MB / 487.4 MB, free: 13.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01167/0.3033, allocations: 4.028 MB / 491.4 MB, free: 9.211 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00658/0.3099, allocations: 2.449 MB / 493.9 MB, free: 6.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01769/0.3275, allocations: 14.25 MB / 0.4962 GB, free: 8.469 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02686/0.3544, allocations: 15.98 MB / 0.5118 GB, free: 8.324 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009777/0.3642, allocations: 7.238 MB / 0.5189 GB, free: 1.066 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01212/0.3763, allocations: 8.144 MB / 0.5269 GB, free: 8.891 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004309/0.3806, allocations: 2.027 MB / 0.5288 GB, free: 6.863 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006122/0.3867, allocations: 2.452 MB / 0.5312 GB, free: 4.414 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004626/0.3914, allocations: 4.037 MB / 0.5352 GB, free: 376 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2008/0.5922, allocations: 7.823 MB / 0.5428 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02263/0.6148, allocations: 27.06 MB / 0.5692 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.6148, allocations: 5.031 kB / 0.5692 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.6148, allocations: 0 / 0.5692 GB, free: 24.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005832/0.6154, allocations: 0 / 0.5692 GB, free: 24.63 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.03912/0.6545, allocations: 16.18 MB / 0.585 GB, free: 14.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.6545, allocations: 11.55 kB / 0.585 GB, free: 14.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004064/0.6586, allocations: 1.938 MB / 0.5869 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03145/0.69, allocations: 6.419 MB / 0.5932 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/0.7043, allocations: 8.653 MB / 0.6017 GB, free: 4.281 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004809/0.7048, allocations: 0.8983 MB / 0.6025 GB, free: 3.391 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003768/0.7085, allocations: 1.195 MB / 0.6037 GB, free: 2.207 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0378/0.7463, allocations: 18.81 MB / 0.6221 GB, free: 15.33 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000234/0.7466, allocations: 23.84 kB / 0.6221 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001521/0.7481, allocations: 0.4969 MB / 0.6226 GB, free: 14.83 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006137/0.7487, allocations: 0.6537 MB / 0.6232 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03053/0.7792, allocations: 17.04 MB / 0.6399 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09885/0.8781, allocations: 63.34 MB / 0.7017 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02947/0.9076, allocations: 29.56 MB / 0.7306 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006447/0.914, allocations: 3.675 MB / 0.7342 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2103/1.124, allocations: 10.43 MB / 0.7444 GB, free: 202 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/1.124, allocations: 75.11 kB / 0.7444 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=402): time 5.901e-06/1.124, allocations: 0 / 0.7444 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=412): time 0.03478/1.159, allocations: 20.41 MB / 0.7644 GB, free: 197.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/1.159, allocations: 123.2 kB / 0.7645 GB, free: 197.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005846/1.165, allocations: 5.192 MB / 0.7696 GB, free: 195.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0003695/1.165, allocations: 90.98 kB / 0.7696 GB, free: 195.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.002036/1.167, allocations: 5.551 MB / 0.7751 GB, free: 191.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009982/1.168, allocations: 1.494 MB / 0.7765 GB, free: 190.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001572/1.17, allocations: 1.261 MB / 0.7778 GB, free: 189.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.624e-05/1.17, allocations: 305.1 kB / 0.778 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003211/1.173, allocations: 2.853 MB / 0.7808 GB, free: 188.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003979/1.177, allocations: 5.355 MB / 0.7861 GB, free: 184 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007575/1.185, allocations: 8.756 MB / 0.7946 GB, free: 177.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.491e-05/1.185, allocations: 24 kB / 0.7946 GB, free: 177.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01234/1.197, allocations: 9.701 MB / 0.8041 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/1.197, allocations: 44 kB / 0.8041 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-05/1.197, allocations: 80 kB / 0.8042 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002717/1.2, allocations: 1.114 MB / 0.8053 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004777/1.205, allocations: 1.454 MB / 0.8067 GB, free: 166.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/1.217, allocations: 13.5 MB / 0.8199 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005022/1.222, allocations: 355.9 kB / 0.8203 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007901/1.223, allocations: 327.7 kB / 0.8206 GB, free: 153.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (10,46,50.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005926/1.229, allocations: 4.233 MB / 0.8247 GB, free: 149.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/1.23, allocations: 0.5589 MB / 0.8252 GB, free: 149.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009785/1.239, allocations: 7.068 MB / 0.8322 GB, free: 142.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005164/1.245, allocations: 4.218 MB / 0.8363 GB, free: 138.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-05/1.245, allocations: 12 kB / 0.8363 GB, free: 138.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.853e-05/1.245, allocations: 23.92 kB / 0.8363 GB, free: 138 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/1.267, allocations: 16.96 MB / 0.8529 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/1.267, allocations: 4 kB / 0.8529 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/1.27, allocations: 0.6865 MB / 0.8535 GB, free: 120.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/1.272, allocations: 1.189 MB / 0.8547 GB, free: 119.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002705/1.273, allocations: 104 kB / 0.8548 GB, free: 118.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01339/1.286, allocations: 17.39 MB / 0.8718 GB, free: 100.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.286, allocations: 8 kB / 0.8718 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/1.299, allocations: 10.3 MB / 0.8818 GB, free: 90.28 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002263/1.301, allocations: 1.142 MB / 0.883 GB, free: 89.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007822/1.302, allocations: 80 kB / 0.883 GB, free: 89.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00237/1.304, allocations: 211.8 kB / 0.8832 GB, free: 88.83 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005993/1.305, allocations: 307.4 kB / 0.8835 GB, free: 88.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002308/1.305, allocations: 128 kB / 0.8837 GB, free: 88.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0043/1.309, allocations: 3.485 MB / 0.8871 GB, free: 84.93 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/1.309, allocations: 0 / 0.8871 GB, free: 84.93 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006567/1.316, allocations: 1.964 MB / 0.889 GB, free: 82.97 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0125/1.328, allocations: 11.03 MB / 0.8998 GB, free: 71.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009305/1.337, allocations: 7.417 MB / 0.907 GB, free: 64.27 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.337, allocations: 4.875 kB / 0.907 GB, free: 64.27 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004859/1.342, allocations: 3.872 MB / 0.9108 GB, free: 60.32 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005878/1.348, allocations: 1.448 MB / 0.9122 GB, free: 58.91 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2768/1.625, allocations: 66.94 MB / 0.9776 GB, free: 197.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00653/1.632, allocations: 7.374 MB / 0.9848 GB, free: 195 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004511/1.636, allocations: 2.002 MB / 0.9867 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005009/1.641, allocations: 4.423 MB / 0.991 GB, free: 191 MB / 0.5762 GB Notification: Performance of SimCode: time 1.112e-06/1.641, allocations: 0 / 0.991 GB, free: 191 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2034/1.844, allocations: 159.9 MB / 1.147 GB, free: 38.98 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.52/21.37, allocations: 3.938 kB / 1.147 GB, free: 38.98 MB / 0.5762 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.145002057004604]