Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.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.001762/0.001762, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002284/0.002284, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 51.91 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2563, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01786/0.2741, allocations: 13.78 MB / 444.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.2855, allocations: 5.069 MB / 450 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002677/0.2882, allocations: 127.2 kB / 450.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.2908, allocations: 1.068 MB / 451.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004102/0.2949, allocations: 1.278 MB / 452.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.2974, allocations: 0.9076 MB / 453.3 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004817/0.3022, allocations: 3.643 MB / 457 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/0.3048, allocations: 1.839 MB / 458.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.3074, allocations: 1.787 MB / 460.6 MB, free: 8.973 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003502/0.3109, allocations: 2.008 MB / 462.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009486/0.3118, allocations: 480 kB / 463.1 MB, free: 6.488 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001535/0.3133, allocations: 0.6911 MB / 463.8 MB, free: 5.797 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.3144, allocations: 1.153 MB / 464.9 MB, free: 4.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00193/0.3164, allocations: 1.618 MB / 466.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007711/0.3241, allocations: 6.337 MB / 472.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3241, allocations: 0 / 472.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3241, allocations: 4 kB / 472.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001229/0.3242, allocations: 0 / 472.9 MB, free: 12.65 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01036/0.3346, allocations: 4.279 MB / 477.2 MB, free: 8.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.3346, allocations: 12.03 kB / 477.2 MB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006513/0.3353, allocations: 455.2 kB / 477.6 MB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002792/0.3381, allocations: 0.631 MB / 478.3 MB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004318/0.3424, allocations: 2.214 MB / 480.5 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.3426, allocations: 234.7 kB / 480.7 MB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004839/0.3431, allocations: 315.9 kB / 481 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007126/0.3502, allocations: 4.126 MB / 485.1 MB, free: 212 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-05/0.3503, allocations: 15.94 kB / 485.2 MB, free: 196 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.3506, allocations: 128 kB / 485.3 MB, free: 68 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.3508, allocations: 146.2 kB / 485.4 MB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006028/0.3568, allocations: 3.382 MB / 488.8 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01988/0.3767, allocations: 11.79 MB / 0.4889 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00341/0.3801, allocations: 1.749 MB / 0.4906 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001582/0.3817, allocations: 0.9337 MB / 0.4915 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004383/0.386, allocations: 2.185 MB / 0.4936 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.3861, allocations: 47.56 kB / 0.4937 GB, free: 11.42 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.016e-06/0.3861, allocations: 0 / 0.4937 GB, free: 11.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01191/0.398, allocations: 5.814 MB / 0.4993 GB, free: 5.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.3981, allocations: 68.72 kB / 0.4994 GB, free: 5.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/0.4012, allocations: 1.936 MB / 0.5013 GB, free: 3.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.4013, allocations: 53.7 kB / 0.5013 GB, free: 3.461 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.4026, allocations: 1.568 MB / 0.5029 GB, free: 1.879 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004419/0.403, allocations: 0.4997 MB / 0.5034 GB, free: 1.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005325/0.4036, allocations: 339.4 kB / 0.5037 GB, free: 1.035 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4037, allocations: 301.1 kB / 0.504 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.405, allocations: 0.7691 MB / 0.5047 GB, free: 15.97 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.4068, allocations: 1.404 MB / 0.5061 GB, free: 14.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003449/0.4103, allocations: 2.323 MB / 0.5084 GB, free: 11.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.4103, allocations: 4 kB / 0.5084 GB, free: 11.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004373/0.4147, allocations: 2.49 MB / 0.5108 GB, free: 9.184 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.4147, allocations: 15.94 kB / 0.5108 GB, free: 9.168 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.4147, allocations: 20 kB / 0.5108 GB, free: 9.148 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003716/0.4151, allocations: 114.5 kB / 0.5109 GB, free: 9.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/0.4169, allocations: 491.5 kB / 0.5114 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.4181, allocations: 1.291 MB / 0.5127 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.4195, allocations: 115.8 kB / 0.5128 GB, free: 7.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.4196, allocations: 92.12 kB / 0.5129 GB, free: 6.938 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001765/0.4214, allocations: 0.9889 MB / 0.5138 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003699/0.4218, allocations: 210.6 kB / 0.514 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003579/0.4253, allocations: 1.969 MB / 0.516 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.4253, allocations: 12 kB / 0.516 GB, free: 3.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4254, allocations: 4 kB / 0.516 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.4254, allocations: 7.969 kB / 0.516 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008362/0.4337, allocations: 4.651 MB / 0.5205 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4337, allocations: 0 / 0.5205 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.4351, allocations: 319.7 kB / 0.5208 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003305/0.4354, allocations: 94.53 kB / 0.5209 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.901e-05/0.4355, allocations: 27.98 kB / 0.5209 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.4367, allocations: 1.287 MB / 0.5222 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4367, allocations: 0 / 0.5222 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004845/0.4415, allocations: 3.091 MB / 0.5252 GB, free: 9.969 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009985/0.4425, allocations: 394.4 kB / 0.5256 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.4427, allocations: 31.94 kB / 0.5256 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009211/0.4437, allocations: 75.91 kB / 0.5257 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.4438, allocations: 105.2 kB / 0.5258 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-05/0.4439, allocations: 32 kB / 0.5258 GB, free: 9.344 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001991/0.4459, allocations: 1.301 MB / 0.5271 GB, free: 8.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4459, allocations: 0 / 0.5271 GB, free: 8.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001693/0.4476, allocations: 0.5312 MB / 0.5276 GB, free: 7.488 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.005594/0.4532, allocations: 3.719 MB / 0.5313 GB, free: 3.711 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.4568, allocations: 1.975 MB / 0.5332 GB, free: 1.719 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4568, allocations: 0 / 0.5332 GB, free: 1.719 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.4584, allocations: 0.9545 MB / 0.5341 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/0.4607, allocations: 0.5224 MB / 0.5346 GB, free: 236 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1972/0.6578, allocations: 20.1 MB / 0.5543 GB, free: 92.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.6591, allocations: 1.714 MB / 0.5559 GB, free: 90.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001199/0.6603, allocations: 0.5158 MB / 0.5564 GB, free: 90.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/0.6614, allocations: 1.19 MB / 0.5576 GB, free: 88.95 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6614, allocations: 0 / 0.5576 GB, free: 88.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.624/2.286, allocations: 53.15 MB / 0.6095 GB, free: 36.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/18.24, allocations: 4.062 kB / 0.6095 GB, free: 36.38 MB / 446.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_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_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.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/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.385078446939588]