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.00134/0.00134, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001524/0.001524, allocations: 153.1 kB / 25.59 MB, free: 8.926 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.9522/0.9522, allocations: 173.4 MB / 202.3 MB, free: 8.301 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|constantSpeed.phi|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.432e-05/1.566e-05, allocations: 2.312 kB / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01154/0.01156, allocations: 11.02 MB / 280.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004763/0.01632, allocations: 3.794 MB / 284 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007175/0.01704, allocations: 75.5 kB / 284.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.0183, allocations: 0.8156 MB / 284.9 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.01978, allocations: 1.036 MB / 286 MB, free: 8.953 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007252/0.02051, allocations: 0.5148 MB / 286.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002211/0.02272, allocations: 3.337 MB / 289.8 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.02407, allocations: 1.426 MB / 291.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002013/0.02609, allocations: 2.402 MB / 293.6 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001376/0.02746, allocations: 1.602 MB / 295.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003525/0.02781, allocations: 379.9 kB / 295.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006792/0.02849, allocations: 0.5932 MB / 296.2 MB, free: 14.62 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006152/0.02911, allocations: 1.075 MB / 297.3 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008831/0.02999, allocations: 1.177 MB / 298.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002109/0.0321, allocations: 2.772 MB / 301.2 MB, free: 9.578 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.0321, allocations: 0 / 301.2 MB, free: 9.578 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.0321, allocations: 0 / 301.2 MB, free: 9.578 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.03213, allocations: 7.984 kB / 301.2 MB, free: 9.57 MB / 282.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.00339/0.03552, allocations: 3.495 MB / 304.7 MB, free: 6.016 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/0.03555, allocations: 12.03 kB / 304.7 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008458/0.03639, allocations: 0.6237 MB / 305.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.03814, allocations: 1.606 MB / 307 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.564e-05/0.03824, allocations: 185.4 kB / 307.2 MB, free: 3.539 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002256/0.03846, allocations: 252.3 kB / 307.4 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.04031, allocations: 1.876 MB / 309.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.272e-05/0.04035, allocations: 4 kB / 309.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.04049, allocations: 104 kB / 309.4 MB, free: 1.195 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.551e-05/0.04058, allocations: 116.9 kB / 309.5 MB, free: 1.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009821/0.04156, allocations: 0.7283 MB / 310.2 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007788/0.04935, allocations: 8.281 MB / 318.5 MB, free: 7.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007257/0.05007, allocations: 0.6409 MB / 319.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000545/0.05062, allocations: 459.2 kB / 319.6 MB, free: 6.602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001245/0.05074, allocations: 52.98 kB / 319.6 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.05077, allocations: 50.33 kB / 319.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 2.535e-06/0.05077, allocations: 4 kB / 319.7 MB, free: 6.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.004472/0.05524, allocations: 2.88 MB / 322.6 MB, free: 3.578 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.05527, allocations: 68.66 kB / 322.6 MB, free: 3.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.0563, allocations: 1.429 MB / 324.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.431e-05/0.05637, allocations: 45.7 kB / 324.1 MB, free: 2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006095/0.05698, allocations: 1.384 MB / 325.5 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.05722, allocations: 0.4919 MB / 326 MB, free: 104 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.05753, allocations: 313 kB / 326.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.05761, allocations: 476.8 kB / 326.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/0.05787, allocations: 195.8 kB / 327 MB, free: 15.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007776/0.05865, allocations: 0.8921 MB / 327.9 MB, free: 13.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008988/0.05955, allocations: 1.241 MB / 329.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.341e-06/0.05956, allocations: 8 kB / 329.1 MB, free: 12.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001527/0.06108, allocations: 1.394 MB / 330.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.0611, allocations: 14.19 kB / 330.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.06112, allocations: 16 kB / 330.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004797/0.0616, allocations: 259 kB / 330.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006748/0.06227, allocations: 339.5 kB / 331.1 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/0.06502, allocations: 4.783 MB / 335.9 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005314/0.06555, allocations: 72.06 kB / 336 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-05/0.06563, allocations: 59.98 kB / 336 MB, free: 5.223 MB / 314.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.0003506/0.06598, allocations: 256 kB / 336.3 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002392/0.06622, allocations: 242.7 kB / 336.5 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.06746, allocations: 1.073 MB / 337.6 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.06748, allocations: 16 kB / 337.6 MB, free: 3.605 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.06749, allocations: 4 kB / 337.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.0675, allocations: 7.969 kB / 337.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007527/0.07502, allocations: 3.234 MB / 340.8 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.07503, allocations: 8.125 kB / 340.8 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006418/0.07567, allocations: 203.7 kB / 341 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000729/0.0764, allocations: 290 kB / 341.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.762e-05/0.07648, allocations: 35.98 kB / 341.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/0.08657, allocations: 6.485 MB / 347.9 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.08658, allocations: 4 kB / 347.9 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005416/0.09199, allocations: 1.61 MB / 349.5 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/0.09249, allocations: 298.6 kB / 349.8 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.09267, allocations: 39.92 kB / 349.8 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006234/0.09329, allocations: 59.91 kB / 349.9 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.09348, allocations: 116.7 kB / 350 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/0.09355, allocations: 31.98 kB / 350 MB, free: 6.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007921/0.09434, allocations: 0.7896 MB / 350.8 MB, free: 5.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09434, allocations: 0 / 350.8 MB, free: 5.801 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004471/0.09881, allocations: 0.5273 MB / 351.3 MB, free: 5.273 MB / 330.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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003484/0.09916, allocations: 227 kB / 351.5 MB, free: 5.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004687/0.1038, allocations: 1.316 MB / 352.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1038, allocations: 0 / 352.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.105, allocations: 1.05 MB / 353.9 MB, free: 2.586 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.1063, allocations: 387.8 kB / 354.3 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1119/0.2182, allocations: 4.373 MB / 358.7 MB, free: 81.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.2187, allocations: 0.6501 MB / 359.3 MB, free: 81.43 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007408/0.2195, allocations: 227.6 kB / 359.5 MB, free: 81.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006738/0.2202, allocations: 459.8 kB / 360 MB, free: 81.35 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.2202, allocations: 1.75 kB / 360 MB, free: 81.35 MB / 330.7 MB Notification: Performance of Templates: time 0.0282/0.2484, allocations: 27.58 MB / 387.6 MB, free: 62.56 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9028186751529574]