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_CurrentSource.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.00172/0.00172, 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.002011/0.002011, allocations: 212.1 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.402/1.402, allocations: 230.6 MB / 257.5 MB, free: 7.793 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_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 47.92 kB / 377.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2325, allocations: 53.36 MB / 431.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04372/0.2762, allocations: 35.86 MB / 467 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.023/0.2992, allocations: 10.89 MB / 477.9 MB, free: 7.664 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007563/0.3068, allocations: 381.9 kB / 478.2 MB, free: 7.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02077/0.3276, allocations: 8.267 MB / 486.5 MB, free: 15 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01218/0.3397, allocations: 3.686 MB / 490.2 MB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007214/0.3469, allocations: 2.409 MB / 492.6 MB, free: 8.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01803/0.365, allocations: 13.51 MB / 0.4943 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02943/0.3944, allocations: 17.62 MB / 0.5115 GB, free: 9.555 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01141/0.4058, allocations: 7.165 MB / 0.5185 GB, free: 2.371 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01353/0.4193, allocations: 8.109 MB / 0.5264 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004892/0.4242, allocations: 1.988 MB / 0.5283 GB, free: 8.246 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006764/0.431, allocations: 2.406 MB / 0.5307 GB, free: 5.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006121/0.4371, allocations: 4.044 MB / 0.5346 GB, free: 1.785 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.238/0.6751, allocations: 6.068 MB / 0.5406 GB, free: 31.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03356/0.7087, allocations: 26.66 MB / 0.5666 GB, free: 27.06 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.7087, allocations: 0 / 0.5666 GB, free: 27.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.7087, allocations: 0 / 0.5666 GB, free: 27.06 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008121/0.7095, allocations: 0.5 kB / 0.5666 GB, free: 27.06 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04455/0.7541, allocations: 15.69 MB / 0.5819 GB, free: 19.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.7541, allocations: 15.53 kB / 0.5819 GB, free: 19.13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006961/0.7611, allocations: 1.755 MB / 0.5836 GB, free: 17.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03326/0.7943, allocations: 6.203 MB / 0.5897 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01774/0.8121, allocations: 8.296 MB / 0.5978 GB, free: 9.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006538/0.8127, allocations: 0.9305 MB / 0.5987 GB, free: 9.508 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004529/0.8173, allocations: 1.229 MB / 0.5999 GB, free: 8.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04977/0.867, allocations: 19.27 MB / 0.6187 GB, free: 5.59 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007071/0.8677, allocations: 23.28 kB / 0.6187 GB, free: 5.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005358/0.8731, allocations: 0.5088 MB / 0.6192 GB, free: 5.074 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008815/0.874, allocations: 0.6582 MB / 0.6199 GB, free: 4.414 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04412/0.9181, allocations: 17.01 MB / 0.6365 GB, free: 3.406 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1193/1.037, allocations: 53.9 MB / 0.6891 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/1.058, allocations: 10.38 MB / 0.6993 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006989/1.065, allocations: 3.475 MB / 0.7027 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02049/1.085, allocations: 7.946 MB / 0.7104 GB, free: 9.297 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.212e-05/1.085, allocations: 77.41 kB / 0.7105 GB, free: 9.211 MB / 0.545 GB Notification: Performance of pre-optimization done (n=361): time 6.592e-06/1.085, allocations: 0 / 0.7105 GB, free: 9.211 MB / 0.545 GB Notification: Performance of matching and sorting (n=403): time 0.04226/1.128, allocations: 17.56 MB / 0.7276 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/1.128, allocations: 94.58 kB / 0.7277 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01179/1.14, allocations: 5.443 MB / 0.733 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008091/1.14, allocations: 89.7 kB / 0.7331 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005693/1.146, allocations: 5.818 MB / 0.7388 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002107/1.148, allocations: 1.474 MB / 0.7403 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003525/1.152, allocations: 1.374 MB / 0.7416 GB, free: 9.402 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001336/1.152, allocations: 308.9 kB / 0.7419 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006185/1.158, allocations: 2.973 MB / 0.7448 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2341/1.392, allocations: 6.061 MB / 0.7507 GB, free: 198 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01264/1.405, allocations: 9.685 MB / 0.7602 GB, free: 193.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000175/1.405, allocations: 29.16 kB / 0.7602 GB, free: 193.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01805/1.423, allocations: 10.11 MB / 0.7701 GB, free: 191.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.000114/1.423, allocations: 48.88 kB / 0.7701 GB, free: 191.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/1.423, allocations: 105.2 kB / 0.7702 GB, free: 191.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002651/1.426, allocations: 0.9401 MB / 0.7711 GB, free: 191.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006367/1.432, allocations: 1.629 MB / 0.7727 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/1.443, allocations: 9.783 MB / 0.7823 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006067/1.449, allocations: 421.1 kB / 0.7827 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.451, allocations: 367.5 kB / 0.783 GB, free: 184.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.00831/1.459, allocations: 4.305 MB / 0.7872 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001763/1.461, allocations: 0.5669 MB / 0.7878 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/1.473, allocations: 6.639 MB / 0.7943 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/1.473, allocations: 40 kB / 0.7943 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.473, allocations: 11.94 kB / 0.7943 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.144e-05/1.473, allocations: 25.41 kB / 0.7943 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02806/1.501, allocations: 15.5 MB / 0.8095 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/1.502, allocations: 11.75 kB / 0.8095 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003493/1.505, allocations: 0.7723 MB / 0.8102 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002131/1.507, allocations: 0.7891 MB / 0.811 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006079/1.508, allocations: 91.5 kB / 0.8111 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008165/1.516, allocations: 8.913 MB / 0.8198 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/1.516, allocations: 10.2 kB / 0.8198 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/1.528, allocations: 9.825 MB / 0.8294 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003173/1.532, allocations: 1.071 MB / 0.8305 GB, free: 146.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001222/1.533, allocations: 80 kB / 0.8305 GB, free: 146.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002684/1.536, allocations: 223.8 kB / 0.8307 GB, free: 146 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005751/1.536, allocations: 294.6 kB / 0.831 GB, free: 145.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002613/1.536, allocations: 120 kB / 0.8311 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004902/1.541, allocations: 3.51 MB / 0.8346 GB, free: 142.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.541, allocations: 0 / 0.8346 GB, free: 142.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006588/1.548, allocations: 1.943 MB / 0.8365 GB, free: 140.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.01218/1.56, allocations: 10.55 MB / 0.8468 GB, free: 129.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009888/1.57, allocations: 7.382 MB / 0.854 GB, free: 122.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.57, allocations: 4.062 kB / 0.854 GB, free: 122.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004443/1.574, allocations: 3.243 MB / 0.8572 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006533/1.581, allocations: 1.408 MB / 0.8585 GB, free: 117.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09482/1.676, allocations: 67.51 MB / 0.9245 GB, free: 46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009867/1.686, allocations: 7.038 MB / 0.9313 GB, free: 38.92 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005268/1.691, allocations: 2.19 MB / 0.9335 GB, free: 36.72 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005232/1.696, allocations: 4.526 MB / 0.9379 GB, free: 32.19 MB / 0.5762 GB Notification: Performance of SimCode: time 1.493e-06/1.696, allocations: 4 kB / 0.9379 GB, free: 32.19 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4751/2.171, allocations: 162.6 MB / 1.097 GB, free: 103.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/21.31, allocations: 7.094 kB / 1.097 GB, free: 103.7 MB / 0.5762 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 36.54538714000955]