Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000852/0.000852, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007795/0.0007795, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.863/0.863, allocations: 173.4 MB / 200.5 MB, free: 9.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_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_0_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 2.965e-06/2.965e-06, allocations: 3.984 kB / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.198e-05/1.495e-05, allocations: 6.281 kB / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02466/0.02468, allocations: 35.32 MB / 353.8 MB, free: 2.832 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01972/0.04439, allocations: 10.66 MB / 364.5 MB, free: 8.141 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007768/0.05216, allocations: 374 kB / 364.8 MB, free: 7.773 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01135/0.06351, allocations: 8.681 MB / 373.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009618/0.07313, allocations: 3.745 MB / 377.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004864/0.07799, allocations: 2.398 MB / 379.7 MB, free: 8.914 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01494/0.09293, allocations: 13.89 MB / 393.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0246/0.1175, allocations: 17.42 MB / 411 MB, free: 9.398 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01704/0.1346, allocations: 10.57 MB / 421.5 MB, free: 14.81 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008993/0.1436, allocations: 6.806 MB / 428.3 MB, free: 7.988 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004015/0.1476, allocations: 1.992 MB / 430.3 MB, free: 5.996 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005805/0.1534, allocations: 2.374 MB / 432.7 MB, free: 3.621 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00613/0.1595, allocations: 4.126 MB / 436.8 MB, free: 15.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01099/0.1705, allocations: 5.205 MB / 442 MB, free: 10.27 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3001/0.4706, allocations: 26.79 MB / 468.8 MB, free: 50.59 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.4706, allocations: 0.5 kB / 468.8 MB, free: 50.59 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4706, allocations: 5.75 kB / 468.8 MB, free: 50.59 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0007675/0.4713, allocations: 0 / 468.8 MB, free: 50.59 MB / 410.8 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.03381/0.5052, allocations: 15.5 MB / 484.3 MB, free: 43.68 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.5052, allocations: 11.39 kB / 484.4 MB, free: 43.68 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004095/0.5093, allocations: 1.748 MB / 486.1 MB, free: 43.25 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01663/0.5259, allocations: 6.293 MB / 492.4 MB, free: 40.75 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.5406, allocations: 8.274 MB / 0.4889 GB, free: 36.9 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005659/0.5412, allocations: 0.9274 MB / 0.4898 GB, free: 36.48 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004091/0.5452, allocations: 1.238 MB / 0.491 GB, free: 36.06 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03233/0.5776, allocations: 19.24 MB / 0.5098 GB, free: 18.29 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004518/0.578, allocations: 23.89 kB / 0.5099 GB, free: 18.27 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003682/0.5817, allocations: 0.5015 MB / 0.5104 GB, free: 17.77 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000334/0.582, allocations: 0.6543 MB / 0.511 GB, free: 17.12 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02509/0.6071, allocations: 16.97 MB / 0.5276 GB, free: 144 kB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07952/0.6867, allocations: 53.81 MB / 0.5801 GB, free: 10.12 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01291/0.6996, allocations: 10.25 MB / 0.5901 GB, free: 1.5 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004444/0.704, allocations: 3.451 MB / 0.5935 GB, free: 14.04 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/0.7149, allocations: 7.841 MB / 0.6012 GB, free: 6.309 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.715, allocations: 77.41 kB / 0.6012 GB, free: 6.223 MB / 490.8 MB Notification: Performance of pre-optimization done (n=361): time 4.779e-06/0.715, allocations: 0 / 0.6012 GB, free: 6.223 MB / 490.8 MB Notification: Performance of matching and sorting (n=403): time 0.02552/0.7405, allocations: 17.52 MB / 0.6183 GB, free: 4.746 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.7406, allocations: 98.14 kB / 0.6184 GB, free: 4.641 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1717/0.9123, allocations: 5.418 MB / 0.6237 GB, free: 179.2 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0007434/0.913, allocations: 89.3 kB / 0.6238 GB, free: 179.2 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002887/0.9159, allocations: 5.789 MB / 0.6295 GB, free: 177.1 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001149/0.9171, allocations: 1.448 MB / 0.6309 GB, free: 176.2 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/0.9186, allocations: 1.344 MB / 0.6322 GB, free: 176.1 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 2.765e-05/0.9186, allocations: 302.7 kB / 0.6325 GB, free: 175.8 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002614/0.9212, allocations: 2.967 MB / 0.6354 GB, free: 174.7 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003454/0.9247, allocations: 6.064 MB / 0.6413 GB, free: 169.6 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/0.9316, allocations: 9.667 MB / 0.6507 GB, free: 162.6 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.876e-05/0.9317, allocations: 27.34 kB / 0.6508 GB, free: 162.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01031/0.942, allocations: 10.09 MB / 0.6606 GB, free: 158.5 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 5.454e-05/0.942, allocations: 49.81 kB / 0.6607 GB, free: 158.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/0.9422, allocations: 100.7 kB / 0.6608 GB, free: 158.5 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/0.9437, allocations: 0.9498 MB / 0.6617 GB, free: 158.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/0.9467, allocations: 1.629 MB / 0.6633 GB, free: 156.7 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006799/0.9534, allocations: 9.774 MB / 0.6728 GB, free: 147.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004683/0.9581, allocations: 412.9 kB / 0.6732 GB, free: 147.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00109/0.9592, allocations: 363.4 kB / 0.6736 GB, free: 146.8 MB / 0.4949 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.006004/0.9652, allocations: 4.306 MB / 0.6778 GB, free: 143.1 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/0.9663, allocations: 0.5662 MB / 0.6783 GB, free: 142.6 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00658/0.9729, allocations: 6.644 MB / 0.6848 GB, free: 137 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.9729, allocations: 44 kB / 0.6848 GB, free: 136.9 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.9729, allocations: 11.44 kB / 0.6849 GB, free: 136.9 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/0.973, allocations: 23.25 kB / 0.6849 GB, free: 136.9 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0188/0.9918, allocations: 15.44 MB / 0.7 GB, free: 123.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.9918, allocations: 4 kB / 0.7 GB, free: 123.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/0.9935, allocations: 0.7767 MB / 0.7007 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/0.9948, allocations: 0.7846 MB / 0.7015 GB, free: 121.5 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.995, allocations: 91.97 kB / 0.7016 GB, free: 121.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00531/1, allocations: 8.924 MB / 0.7103 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1, allocations: 4 kB / 0.7103 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0082/1.009, allocations: 9.799 MB / 0.7199 GB, free: 102.2 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/1.01, allocations: 1.066 MB / 0.7209 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005043/1.011, allocations: 79.88 kB / 0.721 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/1.012, allocations: 227.8 kB / 0.7212 GB, free: 100.9 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003421/1.013, allocations: 290.6 kB / 0.7215 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/1.013, allocations: 116 kB / 0.7216 GB, free: 100.5 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003422/1.016, allocations: 3.501 MB / 0.725 GB, free: 96.98 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9e-08/1.016, allocations: 0 / 0.725 GB, free: 96.98 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004932/1.021, allocations: 1.934 MB / 0.7269 GB, free: 95.05 MB / 0.4949 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,62.5%), (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.008722/1.03, allocations: 10.52 MB / 0.7372 GB, free: 84.41 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.007149/1.037, allocations: 7.369 MB / 0.7444 GB, free: 77 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.037, allocations: 4 kB / 0.7444 GB, free: 77 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002832/1.04, allocations: 3.234 MB / 0.7475 GB, free: 73.72 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004092/1.044, allocations: 1.38 MB / 0.7489 GB, free: 72.38 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08455/1.128, allocations: 67.55 MB / 0.8148 GB, free: 0.8438 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1479/1.276, allocations: 7.027 MB / 0.8217 GB, free: 188.1 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.003984/1.28, allocations: 2.19 MB / 0.8238 GB, free: 188 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004219/1.284, allocations: 4.502 MB / 0.8282 GB, free: 185.9 MB / 0.4949 GB Notification: Performance of SimCode: time 1.483e-06/1.284, allocations: 0 / 0.8282 GB, free: 185.9 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1505/1.435, allocations: 158.3 MB / 0.9828 GB, free: 39.17 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/14.15, allocations: 19.11 kB / 0.9828 GB, free: 39.15 MB / 0.4949 GB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_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_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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 655] Reference file matches [Calling sys.exit(0), Time elapsed: 23.55172853730619]