Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008472/0.0008472, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005189/0.005189, allocations: 160.1 kB / 24.7 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8643/0.8643, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562e-05/1.71e-05, allocations: 5.234 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.007314/0.007331, allocations: 10.14 MB / 336 MB, free: 5.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00383/0.01116, allocations: 3.729 MB / 339.7 MB, free: 1.488 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004924/0.01165, allocations: 75.5 kB / 339.8 MB, free: 1.414 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.01272, allocations: 0.8273 MB / 340.6 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.01387, allocations: 1.032 MB / 341.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005026/0.01437, allocations: 0.5264 MB / 342.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0017/0.01607, allocations: 3.345 MB / 345.5 MB, free: 11.65 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.01742, allocations: 1.422 MB / 346.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.01876, allocations: 2.152 MB / 349.1 MB, free: 8.012 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.0199, allocations: 1.566 MB / 350.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002649/0.02017, allocations: 388 kB / 351 MB, free: 6.062 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.02072, allocations: 0.6048 MB / 351.6 MB, free: 5.457 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005778/0.0213, allocations: 1.11 MB / 352.8 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009377/0.02224, allocations: 1.185 MB / 353.9 MB, free: 3.156 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0028/0.02504, allocations: 5.13 MB / 359.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.02504, allocations: 0 / 359.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.02504, allocations: 0 / 359.1 MB, free: 14.01 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.455e-05/0.02507, allocations: 0 / 359.1 MB, free: 14.01 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.003695/0.02876, allocations: 3.472 MB / 362.5 MB, free: 10.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.02879, allocations: 8.031 kB / 362.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000795/0.02959, allocations: 462.7 kB / 363 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.0314, allocations: 1.791 MB / 364.8 MB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.316e-05/0.03149, allocations: 193.4 kB / 365 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002297/0.03172, allocations: 252.3 kB / 365.2 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003358/0.03508, allocations: 3.377 MB / 368.6 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.329e-05/0.03512, allocations: 12 kB / 368.6 MB, free: 4.258 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001514/0.03527, allocations: 96 kB / 368.7 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.039e-05/0.03535, allocations: 120.9 kB / 368.8 MB, free: 4.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.03809, allocations: 2.693 MB / 371.5 MB, free: 1.336 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008289/0.04638, allocations: 8.913 MB / 380.4 MB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.04764, allocations: 1.247 MB / 381.7 MB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.04892, allocations: 0.9795 MB / 382.7 MB, free: 5.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.04907, allocations: 48.97 kB / 382.7 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.04909, allocations: 47.5 kB / 382.8 MB, free: 5.773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 2.846e-06/0.0491, allocations: 0 / 382.8 MB, free: 5.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.009174/0.05827, allocations: 7.067 MB / 389.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.0583, allocations: 64.72 kB / 389.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001423/0.05973, allocations: 1.72 MB / 391.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.254e-05/0.05979, allocations: 45.7 kB / 391.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005224/0.06031, allocations: 1.286 MB / 392.9 MB, free: 11.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.06054, allocations: 491.8 kB / 393.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002798/0.06082, allocations: 295.5 kB / 393.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.044e-05/0.06088, allocations: 301.1 kB / 394 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008121/0.06169, allocations: 0.812 MB / 394.8 MB, free: 9.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.06269, allocations: 1.312 MB / 396.1 MB, free: 8.105 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/0.06483, allocations: 2.262 MB / 398.4 MB, free: 5.633 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.06483, allocations: 4 kB / 398.4 MB, free: 5.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.002644/0.06748, allocations: 2.705 MB / 401.1 MB, free: 2.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.06749, allocations: 12 kB / 401.1 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.06751, allocations: 19.98 kB / 401.1 MB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005497/0.06806, allocations: 422.5 kB / 401.5 MB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007261/0.06879, allocations: 403.3 kB / 401.9 MB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/0.07265, allocations: 5.476 MB / 407.4 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006726/0.07332, allocations: 131.9 kB / 407.5 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.619e-05/0.07341, allocations: 71.98 kB / 407.6 MB, free: 12.18 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.0009106/0.07432, allocations: 0.79 MB / 408.4 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.07451, allocations: 186.8 kB / 408.6 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.07686, allocations: 2.299 MB / 410.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.07688, allocations: 12 kB / 410.9 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.07688, allocations: 4 kB / 410.9 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.0769, allocations: 12.05 kB / 410.9 MB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004928/0.08182, allocations: 4.539 MB / 415.4 MB, free: 4.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.08183, allocations: 8.062 kB / 415.5 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.08234, allocations: 247.6 kB / 415.7 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006187/0.08296, allocations: 458.1 kB / 416.1 MB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.08302, allocations: 35.97 kB / 416.2 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004375/0.08739, allocations: 6.902 MB / 423.1 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.0874, allocations: 12 kB / 423.1 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003526/0.09092, allocations: 3.467 MB / 426.6 MB, free: 8.688 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004932/0.09142, allocations: 358.7 kB / 426.9 MB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.09155, allocations: 44.11 kB / 426.9 MB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005307/0.09208, allocations: 95.83 kB / 427 MB, free: 8.199 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.09224, allocations: 124.7 kB / 427.2 MB, free: 8.074 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.649e-05/0.0923, allocations: 39.98 kB / 427.2 MB, free: 8.035 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00107/0.09337, allocations: 1.165 MB / 428.4 MB, free: 6.875 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.09337, allocations: 0 / 428.4 MB, free: 6.875 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001175/0.09455, allocations: 0.5391 MB / 428.9 MB, free: 6.336 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.0003115/0.09486, allocations: 222.9 kB / 429.1 MB, free: 6.109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.09714, allocations: 2.267 MB / 431.4 MB, free: 3.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.09714, allocations: 8.125 kB / 431.4 MB, free: 3.809 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.0987, allocations: 1.443 MB / 432.8 MB, free: 2.328 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009821/0.09968, allocations: 378.3 kB / 433.2 MB, free: 1.965 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004845/0.1045, allocations: 5.085 MB / 438.3 MB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/0.1057, allocations: 1.423 MB / 439.7 MB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003157/0.106, allocations: 132.5 kB / 439.9 MB, free: 11.19 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.106, allocations: 7.938 kB / 439.9 MB, free: 11.18 MB / 410.7 MB Notification: Performance of Templates: time 0.1618/0.2678, allocations: 70.52 MB / 0.4984 GB, free: 60.23 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.460110316984355]