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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=60000,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=60000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 112.5 kB / 17.68 MB, free: 5.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 192 kB / 18.61 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009366/0.0009366, allocations: 55.95 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.0856, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01171/0.09733, allocations: 11.47 MB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006367/0.1037, allocations: 3.873 MB / 366.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002741/0.1065, allocations: 63.75 kB / 366.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002655/0.1092, allocations: 0.8423 MB / 367.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002672/0.1119, allocations: 0.9433 MB / 368.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.113, allocations: 0.4993 MB / 369.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1987/0.3117, allocations: 3.202 MB / 372.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004532/0.3162, allocations: 2.578 MB / 375 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002746/0.319, allocations: 1.431 MB / 376.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003439/0.3225, allocations: 1.814 MB / 378.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008333/0.3233, allocations: 385.8 kB / 378.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001643/0.325, allocations: 0.6196 MB / 379.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001489/0.3265, allocations: 1.071 MB / 380.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002541/0.3291, allocations: 1.725 MB / 382 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006598/0.3357, allocations: 5.039 MB / 387 MB, free: 8.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.3357, allocations: 5.219 kB / 387 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3357, allocations: 0 / 387 MB, free: 8.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001158/0.3358, allocations: 0 / 387 MB, free: 8.188 MB / 302.1 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.01027/0.3461, allocations: 3.482 MB / 390.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3462, allocations: 8.406 kB / 390.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002179/0.3484, allocations: 410.3 kB / 390.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004574/0.353, allocations: 1.832 MB / 392.8 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.3532, allocations: 188.8 kB / 393 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005092/0.3537, allocations: 254 kB / 393.2 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007227/0.3609, allocations: 3.255 MB / 396.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.543e-05/0.361, allocations: 0 / 396.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003331/0.3614, allocations: 105.5 kB / 396.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001655/0.3616, allocations: 125.5 kB / 396.7 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006279/0.3679, allocations: 2.698 MB / 399.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02106/0.3889, allocations: 10.24 MB / 409.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.3913, allocations: 1.779 MB / 411.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.3931, allocations: 1.06 MB / 412.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003383/0.3934, allocations: 210.8 kB / 412.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.3935, allocations: 47.56 kB / 412.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.887e-06/0.3935, allocations: 0 / 412.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01779/0.4113, allocations: 7.398 MB / 420.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.4114, allocations: 72.72 kB / 420.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003508/0.4149, allocations: 1.869 MB / 422.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.4151, allocations: 53.64 kB / 422.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009099/0.416, allocations: 1.247 MB / 423.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004022/0.4164, allocations: 467.6 kB / 423.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005058/0.4169, allocations: 298.5 kB / 424.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.417, allocations: 305.1 kB / 424.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.4184, allocations: 0.8198 MB / 425.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/0.4201, allocations: 1.304 MB / 426.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/0.4232, allocations: 2.256 MB / 428.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/0.4233, allocations: 11.47 kB / 428.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004643/0.4279, allocations: 2.79 MB / 431.6 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.4279, allocations: 12 kB / 431.6 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.369e-05/0.428, allocations: 16.28 kB / 431.6 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.429, allocations: 422.2 kB / 432 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.4305, allocations: 404.3 kB / 432.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006106/0.4366, allocations: 5.787 MB / 438.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.4385, allocations: 127.8 kB / 438.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000197/0.4387, allocations: 68 kB / 438.4 MB, free: 9.098 MB / 350.1 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.001408/0.4401, allocations: 0.7908 MB / 439.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005165/0.4407, allocations: 193.7 kB / 439.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.4447, allocations: 2.393 MB / 441.8 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.039e-05/0.4448, allocations: 16 kB / 441.8 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.4448, allocations: 7.984 kB / 441.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4448, allocations: 3.984 kB / 441.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008843/0.4537, allocations: 5.261 MB / 447.1 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/0.4537, allocations: 15.3 kB / 447.1 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.4548, allocations: 253.9 kB / 447.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.4561, allocations: 462.3 kB / 447.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.4562, allocations: 43.92 kB / 447.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007572/0.4638, allocations: 7.324 MB / 455.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.4638, allocations: 7.562 kB / 455.1 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006008/0.4698, allocations: 3.575 MB / 458.7 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/0.4712, allocations: 450.6 kB / 459.2 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/0.4716, allocations: 35.92 kB / 459.2 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.4727, allocations: 102.6 kB / 459.3 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/0.473, allocations: 112.2 kB / 459.4 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.4731, allocations: 47.98 kB / 459.4 MB, free: 3.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001842/0.475, allocations: 1.291 MB / 460.7 MB, free: 2.211 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.475, allocations: 0 / 460.7 MB, free: 2.211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001883/0.4769, allocations: 0.5391 MB / 461.3 MB, free: 1.672 MB / 366.1 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.0004844/0.4774, allocations: 222.3 kB / 461.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004138/0.4815, allocations: 2.424 MB / 463.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.4815, allocations: 0 / 463.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002455/0.484, allocations: 1.501 MB / 465.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.4864, allocations: 469 kB / 465.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008867/0.4953, allocations: 5.093 MB / 471 MB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.4972, allocations: 2.014 MB / 473 MB, free: 5.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001435/0.4986, allocations: 427.6 kB / 473.4 MB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.4991, allocations: 131.4 kB / 473.5 MB, free: 5.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4991, allocations: 4 kB / 473.5 MB, free: 5.336 MB / 382.1 MB Notification: Performance of Templates: time 0.05019/0.5493, allocations: 27.98 MB / 0.4898 GB, free: 9.695 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/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) Reference file matches