Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 60.22 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09323, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01191/0.1052, allocations: 11.51 MB / 370.4 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1694/0.2746, allocations: 3.935 MB / 374.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.2763, allocations: 63.28 kB / 374.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002016/0.2784, allocations: 0.8429 MB / 375.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00265/0.281, allocations: 0.9403 MB / 376.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.2823, allocations: 0.5239 MB / 376.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003842/0.2862, allocations: 3.229 MB / 379.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002754/0.2889, allocations: 2.584 MB / 382.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.2911, allocations: 1.436 MB / 384 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002747/0.2938, allocations: 1.816 MB / 385.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006385/0.2945, allocations: 387 kB / 386.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.2959, allocations: 0.606 MB / 386.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009515/0.2968, allocations: 1.07 MB / 387.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001733/0.2986, allocations: 1.729 MB / 389.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004492/0.3031, allocations: 5.053 MB / 394.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3031, allocations: 0 / 394.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3031, allocations: 0 / 394.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.578e-05/0.3032, allocations: 5.625 kB / 394.6 MB, free: 2.086 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.007147/0.3103, allocations: 3.527 MB / 398.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3104, allocations: 13.05 kB / 398.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/0.3121, allocations: 444 kB / 398.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0035/0.3156, allocations: 1.854 MB / 400.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.3157, allocations: 192.2 kB / 400.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003283/0.3161, allocations: 243.4 kB / 400.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00531/0.3214, allocations: 3.258 MB / 404.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.958e-05/0.3214, allocations: 7.906 kB / 404.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002309/0.3217, allocations: 102.7 kB / 404.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/0.3218, allocations: 116.9 kB / 404.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004418/0.3262, allocations: 2.701 MB / 407.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.3426, allocations: 10.25 MB / 417.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.3448, allocations: 1.774 MB / 419.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.3465, allocations: 1.058 MB / 420.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002951/0.3468, allocations: 214 kB / 420.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.3468, allocations: 47.55 kB / 420.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=115): time 3.186e-06/0.3468, allocations: 0 / 420.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=134): time 0.01737/0.3642, allocations: 7.404 MB / 427.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.3643, allocations: 64.72 kB / 427.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002647/0.3669, allocations: 1.893 MB / 429.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.3671, allocations: 45.7 kB / 429.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008355/0.3679, allocations: 1.253 MB / 431.1 MB, free: 260 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003547/0.3683, allocations: 471.6 kB / 431.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004671/0.3687, allocations: 295.3 kB / 431.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.3688, allocations: 301.1 kB / 432.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.3702, allocations: 0.8159 MB / 432.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.3719, allocations: 1.308 MB / 434.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/0.3749, allocations: 2.256 MB / 436.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/0.3749, allocations: 4 kB / 436.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004651/0.3796, allocations: 2.797 MB / 439.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3796, allocations: 12 kB / 439.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.77e-05/0.3797, allocations: 16 kB / 439.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009971/0.3807, allocations: 426.5 kB / 439.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.3821, allocations: 395.3 kB / 440.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.3879, allocations: 5.788 MB / 445.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.3895, allocations: 135.7 kB / 446 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.3897, allocations: 75.98 kB / 446.1 MB, free: 468 kB / 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.001278/0.391, allocations: 0.7861 MB / 446.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.3913, allocations: 197.7 kB / 447.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003874/0.3952, allocations: 2.397 MB / 449.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/0.3952, allocations: 16 kB / 449.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3953, allocations: 4 kB / 449.5 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3953, allocations: 7.969 kB / 449.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008392/0.4037, allocations: 5.261 MB / 454.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.4037, allocations: 12.06 kB / 454.8 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.4047, allocations: 251.6 kB / 455 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.4058, allocations: 460.6 kB / 455.5 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.532e-05/0.4059, allocations: 39.97 kB / 455.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006848/0.4128, allocations: 7.346 MB / 462.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.4128, allocations: 11.94 kB / 462.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005306/0.4181, allocations: 3.574 MB / 466.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000974/0.4191, allocations: 450.6 kB / 466.9 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.4193, allocations: 28 kB / 466.9 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.4204, allocations: 107.8 kB / 467 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.4207, allocations: 104.7 kB / 467.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.933e-05/0.4208, allocations: 51.92 kB / 467.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001771/0.4226, allocations: 1.303 MB / 468.5 MB, free: 9.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4226, allocations: 0 / 468.5 MB, free: 9.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001784/0.4244, allocations: 0.543 MB / 469 MB, free: 8.848 MB / 382.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.0003969/0.4248, allocations: 221 kB / 469.2 MB, free: 8.629 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003591/0.4284, allocations: 2.415 MB / 471.6 MB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4284, allocations: 8.25 kB / 471.7 MB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002229/0.4306, allocations: 1.509 MB / 473.2 MB, free: 4.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.4324, allocations: 464.8 kB / 473.6 MB, free: 4.172 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006973/0.4393, allocations: 5.096 MB / 478.7 MB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001568/0.4409, allocations: 2.007 MB / 480.7 MB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001042/0.442, allocations: 435.7 kB / 481.1 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.4424, allocations: 135.4 kB / 481.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4424, allocations: 0 / 481.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of Templates: time 0.04387/0.4863, allocations: 28 MB / 0.4973 GB, free: 0.6445 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches