Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.001319/0.001319, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 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.001263/0.001263, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 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 1.446/1.446, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 55.92 kB / 366.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1127, allocations: 52.15 MB / 418.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01431/0.127, allocations: 10.96 MB / 429.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008724/0.1358, allocations: 3.629 MB / 433.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002857/0.1386, allocations: 87.38 kB / 433.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002847/0.1415, allocations: 0.8697 MB / 434 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003384/0.1449, allocations: 0.9048 MB / 435 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.1462, allocations: 459.3 kB / 435.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004379/0.1506, allocations: 2.95 MB / 438.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002859/0.1535, allocations: 1.97 MB / 440.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002441/0.1559, allocations: 1.417 MB / 441.7 MB, free: 5.164 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003455/0.1594, allocations: 1.79 MB / 443.5 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000787/0.1602, allocations: 372 kB / 443.9 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.1613, allocations: 483.8 kB / 444.4 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001231/0.1626, allocations: 1.079 MB / 445.4 MB, free: 1.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2108/0.3734, allocations: 1.671 MB / 447.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006229/0.3796, allocations: 4.892 MB / 452 MB, free: 13.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3796, allocations: 2.141 kB / 452 MB, free: 13.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3796, allocations: 3.531 kB / 452 MB, free: 13.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001501/0.3798, allocations: 0 / 452 MB, free: 13.32 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007728/0.3875, allocations: 3.472 MB / 455.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3875, allocations: 9 kB / 455.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001002/0.3876, allocations: 67.22 kB / 455.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005832/0.3882, allocations: 364.9 kB / 455.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009147/0.3891, allocations: 355.9 kB / 456.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003524/0.3927, allocations: 1.835 MB / 458.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.3928, allocations: 191.8 kB / 458.3 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004496/0.3933, allocations: 253.3 kB / 458.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006153/0.3994, allocations: 3.281 MB / 461.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.299e-05/0.3995, allocations: 9.75 kB / 461.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002395/0.3997, allocations: 102.6 kB / 461.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.3998, allocations: 123.7 kB / 462 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004712/0.4046, allocations: 2.747 MB / 464.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0153/0.4199, allocations: 10.41 MB / 475.2 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.4215, allocations: 1.303 MB / 476.5 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.4225, allocations: 0.7025 MB / 477.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.4227, allocations: 200.5 kB / 477.4 MB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.4228, allocations: 54.3 kB / 477.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 3.146e-06/0.4228, allocations: 0 / 477.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.01421/0.437, allocations: 6.946 MB / 484.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.437, allocations: 67.78 kB / 484.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002691/0.4397, allocations: 1.789 MB / 486.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.4399, allocations: 45.52 kB / 486.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009953/0.4408, allocations: 1.307 MB / 487.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004146/0.4413, allocations: 449.5 kB / 488 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004723/0.4417, allocations: 299.3 kB / 488.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4419, allocations: 305.1 kB / 488.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.443, allocations: 0.7809 MB / 489.4 MB, free: 11.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.4445, allocations: 1.287 MB / 490.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00285/0.4473, allocations: 2.215 MB / 492.9 MB, free: 8.758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.4473, allocations: 4 kB / 492.9 MB, free: 8.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004362/0.4517, allocations: 2.48 MB / 495.4 MB, free: 6.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.4517, allocations: 12 kB / 495.4 MB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/0.4517, allocations: 16 kB / 495.4 MB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006884/0.4524, allocations: 247.6 kB / 495.7 MB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.4539, allocations: 412.1 kB / 496.1 MB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00306/0.457, allocations: 3.236 MB / 499.3 MB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.4587, allocations: 131.8 kB / 499.4 MB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.4589, allocations: 72 kB / 499.5 MB, free: 2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001521/0.4604, allocations: 0.8217 MB / 0.4886 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004448/0.4608, allocations: 194.7 kB / 0.4888 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003776/0.4646, allocations: 2.035 MB / 0.4908 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.4646, allocations: 12.75 kB / 0.4908 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.4646, allocations: 7.984 kB / 0.4908 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.4646, allocations: 3.984 kB / 0.4908 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008512/0.4731, allocations: 4.746 MB / 0.4954 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.4731, allocations: 4 kB / 0.4954 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.4744, allocations: 262.7 kB / 0.4957 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005983/0.475, allocations: 206.8 kB / 0.4959 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.122e-05/0.475, allocations: 24 kB / 0.4959 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/0.478, allocations: 3.218 MB / 0.4991 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.478, allocations: 4.031 kB / 0.4991 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005055/0.4831, allocations: 3.143 MB / 0.5021 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.4841, allocations: 431.7 kB / 0.5025 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002998/0.4844, allocations: 28 kB / 0.5026 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4854, allocations: 99.8 kB / 0.5027 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.4856, allocations: 80.95 kB / 0.5027 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.902e-05/0.4857, allocations: 32 kB / 0.5028 GB, free: 2.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002049/0.4878, allocations: 1.224 MB / 0.504 GB, free: 1.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4878, allocations: 2.625 kB / 0.504 GB, free: 1.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001793/0.4895, allocations: 491.9 kB / 0.5044 GB, free: 0.6211 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.005469/0.495, allocations: 3.789 MB / 0.5081 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003912/0.4989, allocations: 2.265 MB / 0.5104 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.4989, allocations: 3.375 kB / 0.5104 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/0.5009, allocations: 1.27 MB / 0.5116 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.5035, allocations: 490.4 kB / 0.5121 GB, free: 8.738 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0317/0.5352, allocations: 18.77 MB / 0.5304 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001979/0.5372, allocations: 2.002 MB / 0.5323 GB, free: 3.316 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001515/0.5387, allocations: 0.497 MB / 0.5328 GB, free: 2.816 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/0.5401, allocations: 1.017 MB / 0.5338 GB, free: 1.805 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5401, allocations: 0 / 0.5338 GB, free: 1.805 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1007/0.6408, allocations: 46.39 MB / 0.5791 GB, free: 3.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.86, allocations: 11.92 kB / 0.5791 GB, free: 3.918 MB / 478.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 22.67838449397823]