Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.0009018/0.0009018, 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.0007972/0.0007972, allocations: 157.4 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.8721/0.8721, allocations: 173.4 MB / 200.4 MB, free: 9.426 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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.392e-05/1.519e-05, allocations: 2.281 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008482/0.008497, allocations: 10.08 MB / 328.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004699/0.0132, allocations: 3.667 MB / 332.2 MB, free: 8.527 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006365/0.01383, allocations: 79.5 kB / 332.3 MB, free: 8.449 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.01527, allocations: 0.8194 MB / 333.1 MB, free: 7.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.01683, allocations: 1.028 MB / 334.1 MB, free: 6.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000718/0.01755, allocations: 0.5186 MB / 334.6 MB, free: 6.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002407/0.01996, allocations: 3.326 MB / 338 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.02156, allocations: 1.415 MB / 339.4 MB, free: 1.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.02313, allocations: 2.144 MB / 341.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.02464, allocations: 1.559 MB / 343.1 MB, free: 13.53 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003058/0.02495, allocations: 388 kB / 343.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000646/0.02559, allocations: 0.6127 MB / 344.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006203/0.02621, allocations: 1.098 MB / 345.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007558/0.02697, allocations: 1.185 MB / 346.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003306/0.03027, allocations: 5.106 MB / 351.5 MB, free: 5.129 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.03028, allocations: 4 kB / 351.5 MB, free: 5.125 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.03028, allocations: 0 / 351.5 MB, free: 5.125 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.03031, allocations: 0 / 351.5 MB, free: 5.125 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.00379/0.0341, allocations: 3.452 MB / 354.9 MB, free: 1.625 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.03415, allocations: 8.922 kB / 354.9 MB, free: 1.617 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003262/0.03447, allocations: 370.9 kB / 355.3 MB, free: 1.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007395/0.03521, allocations: 426.7 kB / 355.7 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.0375, allocations: 1.775 MB / 357.5 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.603e-05/0.0376, allocations: 185.4 kB / 357.7 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002473/0.03785, allocations: 252.3 kB / 357.9 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003497/0.04134, allocations: 3.384 MB / 361.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/0.04139, allocations: 0 / 361.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.04155, allocations: 104 kB / 361.4 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.46e-05/0.04165, allocations: 120.9 kB / 361.5 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.04467, allocations: 2.693 MB / 364.2 MB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/0.0551, allocations: 9.298 MB / 373.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.05647, allocations: 1.238 MB / 374.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.05759, allocations: 0.9758 MB / 375.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001622/0.05775, allocations: 60.88 kB / 375.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.05778, allocations: 47.56 kB / 375.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 2.805e-06/0.05778, allocations: 0 / 375.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01008/0.06786, allocations: 7.076 MB / 382.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.0679, allocations: 64.72 kB / 383 MB, free: 5.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/0.06968, allocations: 1.9 MB / 384.9 MB, free: 3.113 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.817e-05/0.06975, allocations: 45.7 kB / 384.9 MB, free: 3.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009377/0.07068, allocations: 1.268 MB / 386.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/0.07095, allocations: 495.8 kB / 386.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.07126, allocations: 295.4 kB / 386.9 MB, free: 1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.812e-05/0.07133, allocations: 301.1 kB / 387.2 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008922/0.07222, allocations: 0.8198 MB / 388.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.07333, allocations: 1.304 MB / 389.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/0.07542, allocations: 2.25 MB / 391.6 MB, free: 11.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.07543, allocations: 4 kB / 391.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.003327/0.07876, allocations: 2.724 MB / 394.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.07879, allocations: 12 kB / 394.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.07881, allocations: 16 kB / 394.4 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006712/0.07948, allocations: 418.3 kB / 394.8 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008114/0.08029, allocations: 399.3 kB / 395.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004676/0.08497, allocations: 5.568 MB / 400.7 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008659/0.08583, allocations: 127.8 kB / 400.9 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.601e-05/0.08593, allocations: 71.98 kB / 400.9 MB, free: 2.328 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001123/0.08705, allocations: 0.7824 MB / 401.7 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002205/0.08727, allocations: 202.7 kB / 401.9 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002749/0.09002, allocations: 2.312 MB / 404.2 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/0.09004, allocations: 16 kB / 404.2 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.09005, allocations: 4 kB / 404.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.09006, allocations: 11.97 kB / 404.3 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006373/0.09644, allocations: 4.846 MB / 409.1 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.09644, allocations: 7.938 kB / 409.1 MB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005645/0.09701, allocations: 256.1 kB / 409.4 MB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000681/0.09769, allocations: 462 kB / 409.8 MB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.939e-05/0.09775, allocations: 31.98 kB / 409.8 MB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005063/0.1028, allocations: 6.97 MB / 416.8 MB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.1028, allocations: 7.938 kB / 416.8 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003572/0.1064, allocations: 3.489 MB / 420.3 MB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006104/0.107, allocations: 386.8 kB / 420.7 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.1071, allocations: 35.97 kB / 420.7 MB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006009/0.1077, allocations: 96.03 kB / 420.8 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.1079, allocations: 112.7 kB / 420.9 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.289e-05/0.108, allocations: 47.98 kB / 421 MB, free: 13.69 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001929/0.1099, allocations: 1.291 MB / 422.3 MB, free: 12.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1099, allocations: 0 / 422.3 MB, free: 12.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001351/0.1113, allocations: 0.5507 MB / 422.8 MB, free: 11.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,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.004074/0.1154, allocations: 4.158 MB / 427 MB, free: 7.609 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002975/0.1183, allocations: 2.267 MB / 429.2 MB, free: 5.312 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1183, allocations: 0 / 429.2 MB, free: 5.312 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.1198, allocations: 1.447 MB / 430.7 MB, free: 3.828 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.121, allocations: 458.9 kB / 431.1 MB, free: 3.387 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1814/0.3024, allocations: 20.3 MB / 451.4 MB, free: 118.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/0.3035, allocations: 1.452 MB / 452.9 MB, free: 118.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001335/0.3048, allocations: 424.7 kB / 453.3 MB, free: 118.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008459/0.3057, allocations: 0.9958 MB / 454.3 MB, free: 118.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.104e-06/0.3057, allocations: 0 / 454.3 MB, free: 118.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05477/0.3605, allocations: 52.04 MB / 0.4945 GB, free: 72.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.33/8.691, allocations: 11.27 kB / 0.4945 GB, free: 72.05 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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: 13.717280342243612]