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.0009824/0.0009824, allocations: 84 kB / 21.43 MB, free: 3.129 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.00519/0.00519, allocations: 151 kB / 24.68 MB, free: 9.426 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.8698/0.8698, allocations: 173.4 MB / 201.2 MB, free: 9.434 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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",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.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.02e-05, allocations: 6.219 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008353/0.008383, allocations: 10.1 MB / 329.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006213/0.0146, allocations: 3.655 MB / 333.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.01645, allocations: 79.5 kB / 333.5 MB, free: 7.949 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.01816, allocations: 0.8194 MB / 334.3 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002448/0.02061, allocations: 1.032 MB / 335.4 MB, free: 6.086 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009668/0.02158, allocations: 0.5224 MB / 335.9 MB, free: 5.562 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003108/0.02468, allocations: 3.322 MB / 339.2 MB, free: 2.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001635/0.02632, allocations: 1.419 MB / 340.6 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003617/0.02994, allocations: 2.148 MB / 342.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/0.03273, allocations: 1.555 MB / 344.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.03377, allocations: 388 kB / 344.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.03543, allocations: 0.6049 MB / 345.3 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000923/0.03635, allocations: 1.11 MB / 346.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.03849, allocations: 1.185 MB / 347.6 MB, free: 9.746 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004559/0.04305, allocations: 5.106 MB / 352.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.04305, allocations: 0 / 352.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.04305, allocations: 0 / 352.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001131/0.04317, allocations: 0 / 352.7 MB, free: 4.625 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.005251/0.04842, allocations: 3.46 MB / 356.2 MB, free: 1.113 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.04846, allocations: 8.922 kB / 356.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008026/0.04926, allocations: 430.7 kB / 356.6 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.05147, allocations: 1.763 MB / 358.4 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.29e-05/0.05156, allocations: 189.4 kB / 358.6 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.0518, allocations: 260.2 kB / 358.8 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003855/0.05566, allocations: 3.373 MB / 362.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.002e-05/0.05571, allocations: 7.938 kB / 362.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001614/0.05587, allocations: 100 kB / 362.3 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.754e-05/0.05596, allocations: 116.9 kB / 362.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003176/0.05914, allocations: 2.693 MB / 365.1 MB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01049/0.06963, allocations: 8.925 MB / 374 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.07096, allocations: 1.242 MB / 375.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.072, allocations: 0.9797 MB / 376.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001698/0.07217, allocations: 48.95 kB / 376.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.0722, allocations: 43.56 kB / 376.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 3.737e-06/0.0722, allocations: 0 / 376.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.01003/0.08223, allocations: 7.07 MB / 383.4 MB, free: 5.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.08227, allocations: 68.72 kB / 383.5 MB, free: 5.281 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/0.08401, allocations: 1.699 MB / 385.2 MB, free: 3.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.276e-05/0.08408, allocations: 49.7 kB / 385.2 MB, free: 3.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005715/0.08465, allocations: 1.282 MB / 386.5 MB, free: 2.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/0.08492, allocations: 487.8 kB / 387 MB, free: 1.742 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.08521, allocations: 295.4 kB / 387.3 MB, free: 1.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.249e-05/0.08528, allocations: 305.1 kB / 387.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008472/0.08613, allocations: 0.8198 MB / 388.4 MB, free: 336 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.08717, allocations: 1.308 MB / 389.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001944/0.08912, allocations: 2.258 MB / 392 MB, free: 12.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.08913, allocations: 4 kB / 392 MB, free: 12.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002912/0.09204, allocations: 2.713 MB / 394.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.09206, allocations: 12 kB / 394.7 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.09208, allocations: 12 kB / 394.7 MB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/0.09268, allocations: 421.9 kB / 395.1 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007597/0.09344, allocations: 399.3 kB / 395.5 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0039/0.09734, allocations: 5.488 MB / 401 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.09851, allocations: 131.8 kB / 401.1 MB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.09862, allocations: 68 kB / 401.2 MB, free: 2.875 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.001209/0.09983, allocations: 0.7939 MB / 402 MB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003044/0.1001, allocations: 190.8 kB / 402.2 MB, free: 1.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/0.1027, allocations: 2.287 MB / 404.4 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.1027, allocations: 16 kB / 404.5 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1027, allocations: 8 kB / 404.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.1027, allocations: 12.05 kB / 404.5 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005352/0.1081, allocations: 4.53 MB / 409 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.1081, allocations: 4 kB / 409 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.1086, allocations: 252.2 kB / 409.3 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000707/0.1094, allocations: 457.7 kB / 409.7 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.009e-05/0.1094, allocations: 39.98 kB / 409.8 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004452/0.1139, allocations: 6.902 MB / 416.7 MB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1139, allocations: 8 kB / 416.7 MB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.1175, allocations: 3.463 MB / 420.1 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006878/0.1182, allocations: 358.7 kB / 420.5 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.1184, allocations: 31.98 kB / 420.5 MB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.1189, allocations: 103.8 kB / 420.6 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.1191, allocations: 112.7 kB / 420.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/0.1192, allocations: 47.92 kB / 420.8 MB, free: 14.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001191/0.1204, allocations: 1.153 MB / 421.9 MB, free: 13.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1204, allocations: 0 / 421.9 MB, free: 13.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00138/0.1218, allocations: 0.5429 MB / 422.5 MB, free: 13.05 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.0003834/0.1221, allocations: 219 kB / 422.7 MB, free: 12.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.1248, allocations: 2.27 MB / 424.9 MB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.1248, allocations: 4.938 kB / 424.9 MB, free: 10.53 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.1262, allocations: 1.451 MB / 426.4 MB, free: 9.039 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.1275, allocations: 369.2 kB / 426.8 MB, free: 8.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006029/0.1335, allocations: 5.081 MB / 431.8 MB, free: 3.504 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.1346, allocations: 1.426 MB / 433.3 MB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005101/0.1351, allocations: 144.4 kB / 433.4 MB, free: 1.898 MB / 394.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1351, allocations: 0 / 433.4 MB, free: 1.898 MB / 394.7 MB Notification: Performance of Templates: time 0.1928/0.3279, allocations: 70.21 MB / 0.4918 GB, free: 74.34 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.82852821983397]