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.001771/0.001771, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001989/0.001989, allocations: 146.2 kB / 24.89 MB, free: 8.785 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.8958/0.8958, allocations: 173.4 MB / 201.5 MB, free: 8.242 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 2.154e-06/2.154e-06, allocations: 3.984 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.103e-05/2.318e-05, allocations: 5.266 kB / 268.5 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008663/0.008686, allocations: 11.05 MB / 279.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006222/0.01491, allocations: 3.923 MB / 283.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.01632, allocations: 75.56 kB / 283.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.01782, allocations: 0.8285 MB / 284.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002062/0.01988, allocations: 1.036 MB / 285.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00085/0.02073, allocations: 0.5148 MB / 285.9 MB, free: 8.301 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0026/0.02333, allocations: 3.338 MB / 289.2 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.02465, allocations: 1.458 MB / 290.7 MB, free: 3.402 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002732/0.02738, allocations: 2.382 MB / 293.1 MB, free: 1.016 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.02902, allocations: 1.602 MB / 294.7 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003627/0.02938, allocations: 376 kB / 295.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008073/0.03019, allocations: 0.5932 MB / 295.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006895/0.03088, allocations: 1.071 MB / 296.7 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.03211, allocations: 1.181 MB / 297.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003101/0.03521, allocations: 2.776 MB / 300.7 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.03522, allocations: 0 / 300.7 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.03522, allocations: 0 / 300.7 MB, free: 9.406 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.436e-05/0.03525, allocations: 0 / 300.7 MB, free: 9.406 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.003323/0.03858, allocations: 3.208 MB / 303.9 MB, free: 6.152 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.03861, allocations: 8.031 kB / 303.9 MB, free: 6.145 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008357/0.03945, allocations: 0.5199 MB / 304.4 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/0.0411, allocations: 1.213 MB / 305.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.626e-05/0.0412, allocations: 193.4 kB / 305.8 MB, free: 4.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.04142, allocations: 256.3 kB / 306.1 MB, free: 3.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.04327, allocations: 1.915 MB / 308 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.04331, allocations: 7.938 kB / 308 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/0.04345, allocations: 100 kB / 308.1 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.888e-05/0.04354, allocations: 112.9 kB / 308.2 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.04454, allocations: 0.7276 MB / 308.9 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007232/0.05177, allocations: 6.745 MB / 315.7 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007317/0.05251, allocations: 0.646 MB / 316.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005194/0.05303, allocations: 428.3 kB / 316.7 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001796/0.05321, allocations: 52.97 kB / 316.8 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.05324, allocations: 47.56 kB / 316.8 MB, free: 8.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=115): time 4.128e-06/0.05324, allocations: 0 / 316.8 MB, free: 8.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=134): time 0.005232/0.05847, allocations: 2.907 MB / 319.7 MB, free: 5.734 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.0585, allocations: 72.66 kB / 319.8 MB, free: 5.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008487/0.05935, allocations: 1.204 MB / 321 MB, free: 4.441 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.078e-05/0.05941, allocations: 53.7 kB / 321.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.05981, allocations: 1.058 MB / 322.1 MB, free: 3.309 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.06003, allocations: 487.8 kB / 322.6 MB, free: 2.828 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002666/0.06029, allocations: 287.3 kB / 322.9 MB, free: 2.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.991e-05/0.06035, allocations: 305.1 kB / 323.2 MB, free: 2.238 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.06061, allocations: 182.8 kB / 323.4 MB, free: 2.059 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.06105, allocations: 0.6637 MB / 324 MB, free: 1.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008283/0.06188, allocations: 1.045 MB / 325.1 MB, free: 15.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.06188, allocations: 8 kB / 325.1 MB, free: 15.9 MB / 314.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.001593/0.06347, allocations: 1.128 MB / 326.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.06349, allocations: 12 kB / 326.2 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.06351, allocations: 16 kB / 326.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.06401, allocations: 245.7 kB / 326.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006834/0.06469, allocations: 347.4 kB / 326.8 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.06703, allocations: 3.61 MB / 330.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.06764, allocations: 67.92 kB / 330.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-05/0.06772, allocations: 56 kB / 330.5 MB, free: 10.22 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.000455/0.06817, allocations: 228.2 kB / 330.8 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.06839, allocations: 151.8 kB / 330.9 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.0695, allocations: 0.9016 MB / 331.8 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.06952, allocations: 27.81 kB / 331.8 MB, free: 8.883 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.06953, allocations: 7.938 kB / 331.8 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.06954, allocations: 3.984 kB / 331.9 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003221/0.07276, allocations: 2.691 MB / 334.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.07277, allocations: 4 kB / 334.5 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.07323, allocations: 211.7 kB / 334.8 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005888/0.07382, allocations: 328.1 kB / 335.1 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-05/0.07388, allocations: 35.98 kB / 335.1 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002623/0.0765, allocations: 4.785 MB / 339.9 MB, free: 412 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.07651, allocations: 11.94 kB / 339.9 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.07825, allocations: 1.347 MB / 341.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003811/0.07863, allocations: 230.7 kB / 341.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.07877, allocations: 39.98 kB / 341.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.07919, allocations: 63.89 kB / 341.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.07934, allocations: 108.7 kB / 341.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.341e-05/0.07939, allocations: 35.98 kB / 341.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005006/0.07989, allocations: 0.6112 MB / 342.3 MB, free: 13.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07989, allocations: 0 / 342.3 MB, free: 13.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001194/0.08109, allocations: 0.5311 MB / 342.9 MB, free: 13.34 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.0003109/0.0814, allocations: 212 kB / 343.1 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.08271, allocations: 1.131 MB / 344.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.668e-05/0.08274, allocations: 26.06 kB / 344.2 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007842/0.08352, allocations: 0.8528 MB / 345.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000941/0.08446, allocations: 391.1 kB / 345.5 MB, free: 10.67 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/0.08962, allocations: 4.225 MB / 349.7 MB, free: 6.324 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.09008, allocations: 0.5713 MB / 350.3 MB, free: 5.727 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005662/0.09065, allocations: 230.5 kB / 350.5 MB, free: 5.496 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006499/0.0913, allocations: 409.1 kB / 350.9 MB, free: 5.098 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.0913, allocations: 4 kB / 350.9 MB, free: 5.094 MB / 330.7 MB Notification: Performance of Templates: time 0.1278/0.2191, allocations: 26.86 MB / 377.7 MB, free: 72.57 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.4540273183956742]