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.001048/0.001048, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.001227/0.001227, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.9307/0.9307, allocations: 177 MB / 204.1 MB, free: 5.746 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.923e-06/1.923e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.112e-05, allocations: 3.125 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.00953/0.009551, allocations: 10.13 MB / 334.7 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007495/0.01705, allocations: 3.725 MB / 338.4 MB, free: 1.949 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.01844, allocations: 79.5 kB / 338.5 MB, free: 1.871 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.02019, allocations: 0.8194 MB / 339.3 MB, free: 1.043 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002248/0.02243, allocations: 1.04 MB / 340.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008864/0.02332, allocations: 0.5263 MB / 340.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002269/0.02559, allocations: 3.341 MB / 344.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.02715, allocations: 1.43 MB / 345.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.02882, allocations: 2.156 MB / 347.8 MB, free: 8.461 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.03008, allocations: 1.559 MB / 349.3 MB, free: 6.898 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.03036, allocations: 392 kB / 349.7 MB, free: 6.516 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000697/0.03106, allocations: 0.601 MB / 350.3 MB, free: 5.914 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006494/0.03171, allocations: 1.11 MB / 351.4 MB, free: 4.801 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001086/0.03279, allocations: 1.189 MB / 352.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003248/0.03604, allocations: 5.118 MB / 357.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.03605, allocations: 0 / 357.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.03605, allocations: 0 / 357.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.305e-05/0.03608, allocations: 3.938 kB / 357.7 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.004517/0.0406, allocations: 3.483 MB / 361.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.04066, allocations: 15.92 kB / 361.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003379/0.041, allocations: 358.9 kB / 361.6 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009543/0.04195, allocations: 462.7 kB / 362 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/0.04414, allocations: 1.791 MB / 363.8 MB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.04426, allocations: 193.4 kB / 364 MB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002707/0.04453, allocations: 248.3 kB / 364.3 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004149/0.04868, allocations: 3.38 MB / 367.6 MB, free: 4.352 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.876e-05/0.04873, allocations: 11.94 kB / 367.7 MB, free: 4.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.04889, allocations: 99.98 kB / 367.8 MB, free: 4.242 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.613e-05/0.04899, allocations: 116.9 kB / 367.9 MB, free: 4.125 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.052, allocations: 2.697 MB / 370.6 MB, free: 1.414 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009917/0.06192, allocations: 9.291 MB / 379.9 MB, free: 7.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.06362, allocations: 1.247 MB / 381.1 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.06474, allocations: 0.9873 MB / 382.1 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/0.06493, allocations: 56.91 kB / 382.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.06496, allocations: 47.56 kB / 382.2 MB, free: 5.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 3.737e-06/0.06497, allocations: 0 / 382.2 MB, free: 5.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01061/0.07557, allocations: 7.062 MB / 389.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.07562, allocations: 72.66 kB / 389.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/0.07747, allocations: 1.904 MB / 391.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.503e-05/0.07753, allocations: 53.7 kB / 391.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006459/0.07818, allocations: 1.279 MB / 392.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.07844, allocations: 487.8 kB / 393 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003229/0.07877, allocations: 299.5 kB / 393.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.5e-05/0.07885, allocations: 301.1 kB / 393.6 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009129/0.07976, allocations: 0.8198 MB / 394.4 MB, free: 9.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.08118, allocations: 1.308 MB / 395.8 MB, free: 7.594 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002076/0.08326, allocations: 2.258 MB / 398 MB, free: 5.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.08327, allocations: 4 kB / 398 MB, free: 5.121 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002933/0.0862, allocations: 2.721 MB / 400.7 MB, free: 2.383 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.08623, allocations: 16.03 kB / 400.8 MB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.08624, allocations: 16 kB / 400.8 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006051/0.08685, allocations: 414.3 kB / 401.2 MB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.0879, allocations: 395.3 kB / 401.6 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003863/0.09176, allocations: 5.541 MB / 407.1 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008046/0.09257, allocations: 131.8 kB / 407.2 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.345e-05/0.09266, allocations: 71.98 kB / 407.3 MB, free: 11.58 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.000987/0.09365, allocations: 0.79 MB / 408.1 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.09386, allocations: 214.7 kB / 408.3 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.09668, allocations: 2.297 MB / 410.6 MB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.0967, allocations: 20 kB / 410.6 MB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.09671, allocations: 4 kB / 410.6 MB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.09671, allocations: 7.969 kB / 410.6 MB, free: 8.223 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005322/0.102, allocations: 4.85 MB / 415.5 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.102, allocations: 4 kB / 415.5 MB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005488/0.1026, allocations: 259.5 kB / 415.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009691/0.1036, allocations: 458.6 kB / 416.2 MB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-05/0.1036, allocations: 39.98 kB / 416.2 MB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004775/0.1084, allocations: 6.981 MB / 423.2 MB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1084, allocations: 8 kB / 423.2 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003413/0.1118, allocations: 3.485 MB / 426.7 MB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005346/0.1124, allocations: 378.6 kB / 427.1 MB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.1125, allocations: 39.98 kB / 427.1 MB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.1131, allocations: 95.89 kB / 427.2 MB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.1132, allocations: 120.6 kB / 427.3 MB, free: 6.965 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.892e-05/0.1133, allocations: 47.92 kB / 427.4 MB, free: 6.918 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001236/0.1145, allocations: 1.303 MB / 428.7 MB, free: 5.625 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1145, allocations: 0 / 428.7 MB, free: 5.625 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001321/0.1159, allocations: 0.543 MB / 429.2 MB, free: 5.082 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.004151/0.12, allocations: 4.154 MB / 433.4 MB, free: 0.8398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.1226, allocations: 2.27 MB / 435.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.1226, allocations: 0 / 435.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.1241, allocations: 1.448 MB / 437.1 MB, free: 13.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.1256, allocations: 455.5 kB / 437.5 MB, free: 12.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1619/0.2875, 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.000938/0.2885, allocations: 1.453 MB / 459.3 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007963/0.2893, allocations: 432.2 kB / 459.8 MB, free: 110.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007458/0.29, allocations: 0.995 MB / 460.8 MB, free: 109.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.29, allocations: 0 / 460.8 MB, free: 109.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05185/0.3419, allocations: 52.2 MB / 0.5009 GB, free: 60.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.128/9.47, allocations: 8 kB / 0.5009 GB, free: 60.1 MB / 410.7 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 14.449451173655689]