Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001115/0.001115, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007936/0.0007936, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9034/0.9034, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.374e-05/2.532e-05, allocations: 11.2 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009101/0.009127, allocations: 10.13 MB / 334.7 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005962/0.01509, allocations: 3.721 MB / 338.4 MB, free: 1.949 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.01609, allocations: 83.5 kB / 338.5 MB, free: 1.867 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.01744, allocations: 0.8194 MB / 339.3 MB, free: 1.039 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001617/0.01905, allocations: 1.032 MB / 340.3 MB, free: 0 / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007222/0.01977, allocations: 0.5225 MB / 340.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.0217, allocations: 3.349 MB / 344.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001189/0.02289, allocations: 1.426 MB / 345.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001442/0.02433, allocations: 2.152 MB / 347.8 MB, free: 8.469 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.02555, allocations: 1.566 MB / 349.3 MB, free: 6.898 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002919/0.02584, allocations: 388 kB / 349.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005954/0.02643, allocations: 0.5971 MB / 350.3 MB, free: 5.922 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006324/0.02707, allocations: 1.114 MB / 351.4 MB, free: 4.805 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007594/0.02782, allocations: 1.196 MB / 352.6 MB, free: 3.605 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003027/0.03085, allocations: 5.118 MB / 357.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.03086, allocations: 0 / 357.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.03086, allocations: 0 / 357.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.42e-05/0.03088, allocations: 4 kB / 357.8 MB, free: 14.47 MB / 330.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.003639/0.03452, allocations: 3.471 MB / 361.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.03456, allocations: 11.98 kB / 361.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003115/0.03488, allocations: 374.8 kB / 361.6 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008281/0.0357, allocations: 458.7 kB / 362 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001932/0.03764, allocations: 1.783 MB / 363.8 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.262e-05/0.03773, allocations: 189.4 kB / 364 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002382/0.03797, allocations: 252.3 kB / 364.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005053/0.04302, allocations: 3.384 MB / 367.6 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-05/0.04308, allocations: 7.938 kB / 367.7 MB, free: 4.348 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.04331, allocations: 104 kB / 367.8 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.04342, allocations: 116.9 kB / 367.9 MB, free: 4.129 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004144/0.04756, allocations: 2.693 MB / 370.6 MB, free: 1.422 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.06093, allocations: 9.291 MB / 379.9 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.06257, allocations: 1.251 MB / 381.1 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.06384, allocations: 0.9795 MB / 382.1 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001954/0.06404, allocations: 60.83 kB / 382.1 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.06407, allocations: 55.56 kB / 382.2 MB, free: 5.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 3.958e-06/0.06408, allocations: 0 / 382.2 MB, free: 5.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01176/0.07583, allocations: 7.058 MB / 389.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.07588, allocations: 64.72 kB / 389.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/0.07829, allocations: 1.924 MB / 391.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.07841, allocations: 45.7 kB / 391.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006524/0.07907, allocations: 1.28 MB / 392.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/0.07939, allocations: 487.8 kB / 393 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003379/0.07973, allocations: 295.5 kB / 393.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.125e-05/0.0798, allocations: 301.1 kB / 393.6 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.08104, allocations: 0.812 MB / 394.4 MB, free: 9.133 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.0822, allocations: 1.312 MB / 395.8 MB, free: 7.602 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.0844, allocations: 2.258 MB / 398 MB, free: 5.133 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-05/0.08442, allocations: 8 kB / 398 MB, free: 5.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.003594/0.08801, allocations: 2.72 MB / 400.7 MB, free: 2.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.08804, allocations: 12 kB / 400.7 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.08807, allocations: 12 kB / 400.8 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007052/0.08877, allocations: 426.5 kB / 401.2 MB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.08993, allocations: 395.3 kB / 401.6 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004338/0.09427, allocations: 5.537 MB / 407.1 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.09559, allocations: 127.8 kB / 407.2 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.09573, allocations: 76 kB / 407.3 MB, free: 11.59 MB / 378.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.001203/0.09693, allocations: 0.7901 MB / 408.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003936/0.09733, allocations: 210.6 kB / 408.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003113/0.1004, allocations: 2.3 MB / 410.6 MB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/0.1005, allocations: 20 kB / 410.6 MB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.1005, allocations: 4 kB / 410.6 MB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.1005, allocations: 7.969 kB / 410.6 MB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00692/0.1074, allocations: 4.854 MB / 415.5 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.1074, allocations: 4.094 kB / 415.5 MB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008522/0.1083, allocations: 251.6 kB / 415.7 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008109/0.1091, allocations: 470.2 kB / 416.2 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.439e-05/0.1092, allocations: 35.97 kB / 416.2 MB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005418/0.1146, allocations: 6.974 MB / 423.2 MB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.1146, allocations: 4 kB / 423.2 MB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004355/0.1189, allocations: 3.485 MB / 426.7 MB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009768/0.1199, allocations: 390.5 kB / 427.1 MB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/0.1202, allocations: 28 kB / 427.1 MB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007307/0.1209, allocations: 107.9 kB / 427.2 MB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.1211, allocations: 108.7 kB / 427.3 MB, free: 6.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-05/0.1212, allocations: 51.92 kB / 427.4 MB, free: 6.926 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001665/0.1229, allocations: 1.303 MB / 428.7 MB, free: 5.633 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1229, allocations: 0 / 428.7 MB, free: 5.633 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00177/0.1246, allocations: 0.5469 MB / 429.2 MB, free: 5.086 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.004735/0.1294, allocations: 4.158 MB / 433.4 MB, free: 0.8398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.1322, allocations: 2.265 MB / 435.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.1322, allocations: 0 / 435.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0019/0.1341, allocations: 1.445 MB / 437.1 MB, free: 13.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.1359, allocations: 460 kB / 437.5 MB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1698/0.3057, allocations: 20.36 MB / 457.9 MB, free: 111.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009662/0.3067, allocations: 1.449 MB / 459.3 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009364/0.3076, allocations: 433.5 kB / 459.8 MB, free: 110.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007627/0.3084, allocations: 0.9985 MB / 460.8 MB, free: 109.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3084, allocations: 0 / 460.8 MB, free: 109.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06371/0.3721, allocations: 52.2 MB / 0.5009 GB, free: 60.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.204/8.576, allocations: 0 / 0.5009 GB, free: 60.18 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable constantSpeed.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,constantSpeed.phi,smee.is[1],smee.is[2],smee.idq_dr[1],smee.idq_rr[2],smee.idq_sr[1],smee.idq_sr[2] Variables in the result:time,smee.idq_dr[1],smee.idq_rr[2],smee.idq_sr[1],smee.idq_sr[2],smee.phiMechanical [Calling sys.exit(0), Time elapsed: 11.430215769447386]