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.001565/0.001565, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.002043/0.002043, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.396/1.396, allocations: 230.6 MB / 254.8 MB, free: 15.08 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 47.94 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1025, allocations: 53.33 MB / 427 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2097/0.3122, allocations: 15.87 MB / 442.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009826/0.322, allocations: 5.354 MB / 448.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003321/0.3254, allocations: 131.5 kB / 448.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003438/0.3288, allocations: 1.141 MB / 449.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004875/0.3337, allocations: 1.288 MB / 450.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002796/0.3365, allocations: 0.9201 MB / 451.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005595/0.3421, allocations: 3.648 MB / 455.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0034/0.3455, allocations: 2.375 MB / 457.8 MB, free: 9.621 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.3488, allocations: 1.777 MB / 459.5 MB, free: 8.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003923/0.3527, allocations: 2.152 MB / 461.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008936/0.3536, allocations: 479.1 kB / 462.2 MB, free: 7.719 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.3555, allocations: 0.7088 MB / 462.9 MB, free: 7.629 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.3567, allocations: 1.149 MB / 464 MB, free: 6.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003182/0.3599, allocations: 2.048 MB / 466.1 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00843/0.3683, allocations: 6.323 MB / 472.4 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3683, allocations: 0 / 472.4 MB, free: 0.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3683, allocations: 1.438 kB / 472.4 MB, free: 0.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002101/0.3685, allocations: 3.984 kB / 472.4 MB, free: 0.7891 MB / 366.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.01252/0.381, allocations: 4.363 MB / 476.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3811, allocations: 8.156 kB / 476.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.022e-05/0.3811, allocations: 85.95 kB / 476.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006795/0.3818, allocations: 449.1 kB / 477.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002942/0.3848, allocations: 0.6393 MB / 477.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004325/0.3891, allocations: 2.303 MB / 480.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.3893, allocations: 236.1 kB / 480.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005449/0.3899, allocations: 315.9 kB / 480.8 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007762/0.3976, allocations: 4.054 MB / 484.8 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.479e-05/0.3977, allocations: 3.953 kB / 484.8 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003209/0.398, allocations: 130.5 kB / 485 MB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000167/0.3982, allocations: 146.2 kB / 485.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006268/0.4044, allocations: 3.393 MB / 488.5 MB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02138/0.4258, allocations: 13.39 MB / 0.4901 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004854/0.4307, allocations: 4.169 MB / 0.4942 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.4324, allocations: 0.9261 MB / 0.4951 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004882/0.4372, allocations: 2.866 MB / 0.4979 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.4373, allocations: 55.5 kB / 0.4979 GB, free: 12.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.615e-06/0.4373, allocations: 3.938 kB / 0.498 GB, free: 12.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01261/0.4499, allocations: 6.03 MB / 0.5038 GB, free: 6.527 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.45, allocations: 64.72 kB / 0.5039 GB, free: 6.449 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003426/0.4534, allocations: 1.913 MB / 0.5058 GB, free: 4.492 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.4535, allocations: 49.7 kB / 0.5058 GB, free: 4.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00138/0.4549, allocations: 1.56 MB / 0.5073 GB, free: 2.863 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005037/0.4554, allocations: 0.4997 MB / 0.5078 GB, free: 2.359 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006228/0.456, allocations: 339.4 kB / 0.5082 GB, free: 2.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4561, allocations: 301.1 kB / 0.5084 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.4575, allocations: 0.773 MB / 0.5092 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.4594, allocations: 1.375 MB / 0.5105 GB, free: 15.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/0.4628, allocations: 2.32 MB / 0.5128 GB, free: 12.72 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/0.4628, allocations: 8 kB / 0.5128 GB, free: 12.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004524/0.4673, allocations: 2.49 MB / 0.5152 GB, free: 10.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.496e-05/0.4673, allocations: 16 kB / 0.5153 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/0.4674, allocations: 16.59 kB / 0.5153 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003955/0.4678, allocations: 126.5 kB / 0.5154 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001833/0.4696, allocations: 483.2 kB / 0.5159 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.4709, allocations: 1.398 MB / 0.5172 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.4727, allocations: 127.9 kB / 0.5173 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.4729, allocations: 83.98 kB / 0.5174 GB, free: 7.816 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.002006/0.4749, allocations: 0.985 MB / 0.5184 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005554/0.4754, allocations: 210.6 kB / 0.5186 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00382/0.4792, allocations: 1.968 MB / 0.5205 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.4793, allocations: 16 kB / 0.5205 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4793, allocations: 0 / 0.5205 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.4793, allocations: 7.969 kB / 0.5205 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009507/0.4888, allocations: 4.998 MB / 0.5254 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.4888, allocations: 0 / 0.5254 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.4902, allocations: 311.8 kB / 0.5257 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003207/0.4905, allocations: 94.47 kB / 0.5258 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.4906, allocations: 35.98 kB / 0.5258 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.4917, allocations: 1.378 MB / 0.5272 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4917, allocations: 4.156 kB / 0.5272 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004901/0.4966, allocations: 3.087 MB / 0.5302 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.4978, allocations: 471.5 kB / 0.5306 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005539/0.4984, allocations: 28 kB / 0.5307 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.4997, allocations: 79.97 kB / 0.5307 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.4999, allocations: 93.06 kB / 0.5308 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.5, allocations: 39.98 kB / 0.5309 GB, free: 9.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002549/0.5025, allocations: 1.294 MB / 0.5321 GB, free: 8.363 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5025, allocations: 0 / 0.5321 GB, free: 8.363 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0023/0.5048, allocations: 0.5428 MB / 0.5327 GB, free: 7.82 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.005642/0.5105, allocations: 3.722 MB / 0.5363 GB, free: 4.039 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003693/0.5142, allocations: 2.126 MB / 0.5384 GB, free: 1.859 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5142, allocations: 0 / 0.5384 GB, free: 1.859 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.5158, allocations: 1.107 MB / 0.5395 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.5189, allocations: 0.5225 MB / 0.54 GB, free: 188 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0365/0.5554, allocations: 20.07 MB / 0.5596 GB, free: 11.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002922/0.5583, allocations: 2.268 MB / 0.5618 GB, free: 9.016 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001753/0.56, allocations: 0.5172 MB / 0.5623 GB, free: 8.496 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/0.5619, allocations: 1.183 MB / 0.5635 GB, free: 7.312 MB / 478.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5619, allocations: 0 / 0.5635 GB, free: 7.312 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09776/0.6597, allocations: 50.46 MB / 0.6127 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.45, allocations: 15.81 kB / 0.6127 GB, free: 5.312 MB / 0.5137 GB " [Timeout remaining time 645] (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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 24.201028889976442]