Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.00169/0.00169, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002039/0.002039, allocations: 206.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.373/1.373, allocations: 230.6 MB / 257.5 MB, free: 7.797 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+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_Mains,fileNamePrefix="Modelica_4_1_0_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_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 51.92 kB / 377.8 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2521, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03904/0.2911, allocations: 32.54 MB / 463.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02159/0.3127, allocations: 9.985 MB / 473.7 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006688/0.3194, allocations: 330.2 kB / 474 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02193/0.3413, allocations: 8.584 MB / 482.6 MB, free: 3.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0152/0.3565, allocations: 4.044 MB / 486.6 MB, free: 14.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008209/0.3648, allocations: 2.416 MB / 489 MB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02161/0.3864, allocations: 14.33 MB / 0.4916 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03286/0.4192, allocations: 17.12 MB / 0.5083 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01341/0.4326, allocations: 7.391 MB / 0.5155 GB, free: 5.473 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01541/0.448, allocations: 8.148 MB / 0.5235 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006558/0.4546, allocations: 2.023 MB / 0.5254 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008927/0.4635, allocations: 2.437 MB / 0.5278 GB, free: 8.836 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007291/0.4708, allocations: 4.033 MB / 0.5317 GB, free: 4.793 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4755/0.9463, allocations: 6.099 MB / 0.5377 GB, free: 31.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02819/0.9745, allocations: 27.16 MB / 0.5642 GB, free: 27.47 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.9745, allocations: 3.656 kB / 0.5642 GB, free: 27.47 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.9745, allocations: 0 / 0.5642 GB, free: 27.47 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007221/0.9753, allocations: 0 / 0.5642 GB, free: 27.47 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.04494/1.02, allocations: 16.09 MB / 0.5799 GB, free: 20.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/1.02, allocations: 7.719 kB / 0.5799 GB, free: 20.37 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005839/1.026, allocations: 1.932 MB / 0.5818 GB, free: 19.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03398/1.06, allocations: 6.422 MB / 0.5881 GB, free: 16.69 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01789/1.078, allocations: 8.629 MB / 0.5965 GB, free: 11.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006042/1.079, allocations: 0.9026 MB / 0.5974 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004199/1.083, allocations: 1.193 MB / 0.5986 GB, free: 9.812 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04176/1.125, allocations: 19.06 MB / 0.6172 GB, free: 6.621 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003909/1.125, allocations: 19.89 kB / 0.6172 GB, free: 6.602 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003399/1.128, allocations: 0.4913 MB / 0.6177 GB, free: 6.125 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007679/1.129, allocations: 0.6537 MB / 0.6183 GB, free: 5.469 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.037/1.166, allocations: 16.99 MB / 0.6349 GB, free: 4.48 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1079/1.274, allocations: 55.42 MB / 0.689 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02196/1.296, allocations: 10.84 MB / 0.6996 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006934/1.303, allocations: 3.676 MB / 0.7032 GB, free: 15.53 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01967/1.323, allocations: 9.016 MB / 0.712 GB, free: 6.629 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.039e-05/1.323, allocations: 77.8 kB / 0.7121 GB, free: 6.543 MB / 0.545 GB Notification: Performance of pre-optimization done (n=402): time 7.363e-06/1.323, allocations: 0 / 0.7121 GB, free: 6.543 MB / 0.545 GB Notification: Performance of matching and sorting (n=412): time 0.04571/1.368, allocations: 19.71 MB / 0.7313 GB, free: 2.758 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/1.368, allocations: 135.7 kB / 0.7315 GB, free: 2.609 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009233/1.378, allocations: 5.346 MB / 0.7367 GB, free: 13.27 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008887/1.379, allocations: 93.7 kB / 0.7368 GB, free: 13.18 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004363/1.383, allocations: 5.545 MB / 0.7422 GB, free: 7.617 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002362/1.385, allocations: 1.496 MB / 0.7437 GB, free: 6.141 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002506/1.388, allocations: 1.263 MB / 0.7449 GB, free: 4.867 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.388, allocations: 301.1 kB / 0.7452 GB, free: 4.57 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004764/1.393, allocations: 2.859 MB / 0.748 GB, free: 1.707 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2433/1.636, allocations: 5.395 MB / 0.7532 GB, free: 200.3 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/1.648, allocations: 8.754 MB / 0.7618 GB, free: 196.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000188/1.648, allocations: 22.72 kB / 0.7618 GB, free: 196.9 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.0165/1.664, allocations: 9.633 MB / 0.7712 GB, free: 193.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.948e-05/1.664, allocations: 40.38 kB / 0.7713 GB, free: 193.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/1.665, allocations: 85.47 kB / 0.7713 GB, free: 193.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002793/1.667, allocations: 1.112 MB / 0.7724 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005871/1.673, allocations: 1.453 MB / 0.7738 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/1.688, allocations: 12.89 MB / 0.7864 GB, free: 184.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007602/1.696, allocations: 351.5 kB / 0.7868 GB, free: 184.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001657/1.697, allocations: 335.5 kB / 0.7871 GB, free: 184.3 MB / 0.5763 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.009323/1.707, allocations: 4.229 MB / 0.7912 GB, free: 182.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00176/1.708, allocations: 0.5565 MB / 0.7918 GB, free: 182.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/1.721, allocations: 6.92 MB / 0.7985 GB, free: 177 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006637/1.728, allocations: 4.219 MB / 0.8026 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.123e-05/1.728, allocations: 14.41 kB / 0.8027 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.569e-05/1.728, allocations: 19.03 kB / 0.8027 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03125/1.759, allocations: 16.01 MB / 0.8183 GB, free: 159.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/1.759, allocations: 8 kB / 0.8183 GB, free: 159.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/1.762, allocations: 0.6932 MB / 0.819 GB, free: 159.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003064/1.765, allocations: 1.183 MB / 0.8201 GB, free: 158.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003094/1.766, allocations: 102.8 kB / 0.8202 GB, free: 158.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0165/1.782, allocations: 16.56 MB / 0.8364 GB, free: 141.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.782, allocations: 8 kB / 0.8364 GB, free: 141.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01602/1.798, allocations: 10.13 MB / 0.8463 GB, free: 131.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00368/1.802, allocations: 1.092 MB / 0.8474 GB, free: 130.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00168/1.804, allocations: 83.92 kB / 0.8475 GB, free: 130.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/1.807, allocations: 207.8 kB / 0.8477 GB, free: 130.4 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/1.808, allocations: 327.2 kB / 0.848 GB, free: 130.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003236/1.808, allocations: 128 kB / 0.8481 GB, free: 129.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005807/1.814, allocations: 3.477 MB / 0.8515 GB, free: 126.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.7e-07/1.814, allocations: 0 / 0.8515 GB, free: 126.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009465/1.823, allocations: 1.962 MB / 0.8534 GB, free: 124.5 MB / 0.5763 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.01509/1.839, allocations: 10.88 MB / 0.864 GB, free: 113.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01018/1.849, allocations: 7.35 MB / 0.8712 GB, free: 106.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/1.849, allocations: 1.938 kB / 0.8712 GB, free: 106.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005967/1.855, allocations: 3.875 MB / 0.875 GB, free: 102.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008737/1.863, allocations: 1.452 MB / 0.8764 GB, free: 100.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1138/1.977, allocations: 66.77 MB / 0.9416 GB, free: 30.79 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006987/1.984, allocations: 6.983 MB / 0.9484 GB, free: 23.77 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005961/1.99, allocations: 2.005 MB / 0.9504 GB, free: 21.75 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007464/1.998, allocations: 4.42 MB / 0.9547 GB, free: 17.33 MB / 0.5763 GB Notification: Performance of SimCode: time 1.543e-06/1.998, allocations: 0 / 0.9547 GB, free: 17.33 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4216/2.419, allocations: 167.4 MB / 1.118 GB, free: 86.14 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.44/21.86, allocations: 0 / 1.118 GB, free: 86.14 MB / 0.5763 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 30.690974722005194]