Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.001345/0.001345, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.00148/0.00148, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 59.91 kB / 378.6 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3202, allocations: 53.4 MB / 432 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01955/0.3398, allocations: 15.93 MB / 447.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.3517, allocations: 5.378 MB / 453.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003774/0.3555, allocations: 123.2 kB / 453.4 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00353/0.359, allocations: 1.149 MB / 454.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004093/0.3631, allocations: 1.297 MB / 455.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002321/0.3655, allocations: 0.9498 MB / 456.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005112/0.3706, allocations: 3.656 MB / 460.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002746/0.3733, allocations: 1.917 MB / 462.4 MB, free: 8.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002751/0.3761, allocations: 1.78 MB / 464.2 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003458/0.3795, allocations: 2.156 MB / 466.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006954/0.3802, allocations: 480 kB / 466.8 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.3817, allocations: 0.7028 MB / 467.5 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001097/0.3828, allocations: 1.169 MB / 468.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002332/0.3851, allocations: 2.046 MB / 470.7 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007143/0.3922, allocations: 6.318 MB / 477 MB, free: 9.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3923, allocations: 0 / 477 MB, free: 9.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3923, allocations: 0 / 477 MB, free: 9.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000132/0.3924, allocations: 0 / 477 MB, free: 9.406 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.01101/0.4034, allocations: 4.291 MB / 481.3 MB, free: 5.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.4034, allocations: 8.031 kB / 481.3 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.684e-05/0.4035, allocations: 90.47 kB / 481.4 MB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005882/0.4041, allocations: 447.3 kB / 481.9 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00278/0.4069, allocations: 0.631 MB / 482.5 MB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005105/0.412, allocations: 2.233 MB / 484.7 MB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000233/0.4123, allocations: 238.4 kB / 485 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005602/0.4128, allocations: 311.9 kB / 485.3 MB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007334/0.4201, allocations: 4.058 MB / 489.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.739e-05/0.4202, allocations: 7.953 kB / 489.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002906/0.4205, allocations: 131.8 kB / 489.5 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.4207, allocations: 150.2 kB / 489.6 MB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005955/0.4266, allocations: 3.393 MB / 493 MB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.4488, allocations: 12.86 MB / 0.494 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003596/0.4524, allocations: 1.764 MB / 0.4957 GB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.4541, allocations: 0.9221 MB / 0.4966 GB, free: 9.328 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005151/0.4592, allocations: 2.462 MB / 0.499 GB, free: 6.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/0.4593, allocations: 43.56 kB / 0.4991 GB, free: 6.789 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.485e-06/0.4593, allocations: 0 / 0.4991 GB, free: 6.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01264/0.4719, allocations: 5.826 MB / 0.5048 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/0.472, allocations: 64.72 kB / 0.5048 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003873/0.4758, allocations: 1.906 MB / 0.5067 GB, free: 14.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.476, allocations: 53.7 kB / 0.5067 GB, free: 14.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001457/0.4774, allocations: 1.556 MB / 0.5083 GB, free: 13.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005744/0.478, allocations: 0.4996 MB / 0.5087 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006052/0.4786, allocations: 339.4 kB / 0.5091 GB, free: 12.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4787, allocations: 305.1 kB / 0.5094 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.48, allocations: 0.773 MB / 0.5101 GB, free: 11.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.482, allocations: 1.379 MB / 0.5115 GB, free: 9.703 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003493/0.4855, allocations: 2.312 MB / 0.5137 GB, free: 7.125 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.497e-05/0.4855, allocations: 8 kB / 0.5137 GB, free: 7.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004547/0.49, allocations: 2.49 MB / 0.5162 GB, free: 4.609 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.4901, allocations: 16 kB / 0.5162 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.4e-05/0.4901, allocations: 19.94 kB / 0.5162 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.4905, allocations: 118.5 kB / 0.5163 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/0.4923, allocations: 487.4 kB / 0.5168 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.4935, allocations: 1.306 MB / 0.518 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.4954, allocations: 115.8 kB / 0.5182 GB, free: 2.441 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/0.4956, allocations: 87.98 kB / 0.5182 GB, free: 2.355 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.002508/0.4981, allocations: 0.9851 MB / 0.5192 GB, free: 1.359 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006312/0.4988, allocations: 214.6 kB / 0.5194 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003918/0.5027, allocations: 1.969 MB / 0.5213 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.811e-05/0.5027, allocations: 16 kB / 0.5213 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5027, allocations: 0 / 0.5213 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.5027, allocations: 3.984 kB / 0.5213 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.5135, allocations: 4.982 MB / 0.5262 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/0.5135, allocations: 4 kB / 0.5262 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/0.5149, allocations: 307.5 kB / 0.5265 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003242/0.5152, allocations: 98.78 kB / 0.5266 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.5153, allocations: 27.98 kB / 0.5266 GB, free: 9.621 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.5164, allocations: 1.279 MB / 0.5279 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.5164, allocations: 7.938 kB / 0.5279 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005098/0.5215, allocations: 3.091 MB / 0.5309 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.5227, allocations: 394.4 kB / 0.5313 GB, free: 4.676 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004578/0.5232, allocations: 24 kB / 0.5313 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.5244, allocations: 79.91 kB / 0.5314 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.5246, allocations: 97.02 kB / 0.5315 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.045e-05/0.5247, allocations: 39.98 kB / 0.5315 GB, free: 4.441 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002569/0.5272, allocations: 1.301 MB / 0.5328 GB, free: 3.117 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5272, allocations: 0 / 0.5328 GB, free: 3.117 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002092/0.5293, allocations: 0.5273 MB / 0.5333 GB, free: 2.59 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.2768/0.8061, allocations: 3.713 MB / 0.5369 GB, free: 99.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.8101, allocations: 1.969 MB / 0.5388 GB, free: 99.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.8101, allocations: 1.531 kB / 0.5388 GB, free: 99.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.8115, allocations: 0.956 MB / 0.5398 GB, free: 98.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.8142, allocations: 0.5262 MB / 0.5403 GB, free: 98.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02846/0.8427, allocations: 20.11 MB / 0.5599 GB, free: 85.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/0.8442, allocations: 2.274 MB / 0.5622 GB, free: 83.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001476/0.8456, allocations: 0.5133 MB / 0.5627 GB, free: 83.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/0.8468, allocations: 1.187 MB / 0.5638 GB, free: 81.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8468, allocations: 0 / 0.5638 GB, free: 81.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09486/0.9416, allocations: 51.77 MB / 0.6144 GB, free: 30.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.77/16.72, allocations: 7.922 kB / 0.6144 GB, free: 30.55 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 27.09584675799124]