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.000795/0.000795, allocations: 96.58 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.116/1.116, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001711/0.0001712, allocations: 11.98 kB / 307.7 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07133/0.07151, allocations: 51.51 MB / 359.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009082/0.08061, allocations: 10.84 MB / 370.1 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1253/0.2059, allocations: 3.851 MB / 373.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.207, allocations: 57.92 kB / 374 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.2084, allocations: 0.7327 MB / 374.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.2101, allocations: 0.858 MB / 375.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007667/0.2109, allocations: 459.2 kB / 376 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002503/0.2134, allocations: 3.585 MB / 379.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001965/0.2153, allocations: 2.148 MB / 381.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00108/0.2164, allocations: 1.091 MB / 382.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.2179, allocations: 1.541 MB / 384.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002481/0.2181, allocations: 162 kB / 384.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007287/0.2189, allocations: 409 kB / 385 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006581/0.2195, allocations: 0.8058 MB / 385.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.2206, allocations: 1.46 MB / 387.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002699/0.2233, allocations: 4.735 MB / 392 MB, free: 3.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2233, allocations: 0 / 392 MB, free: 3.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2233, allocations: 1.219 kB / 392 MB, free: 3.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.079e-05/0.2233, allocations: 1.875 kB / 392 MB, free: 3.254 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.004256/0.2276, allocations: 2.978 MB / 394.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.2276, allocations: 9.625 kB / 394.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/0.2289, allocations: 456.4 kB / 395.4 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.231, allocations: 1.804 MB / 397.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.2312, allocations: 196.4 kB / 397.4 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003121/0.2315, allocations: 259.4 kB / 397.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004335/0.2359, allocations: 3.257 MB / 400.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.888e-05/0.2359, allocations: 10.5 kB / 400.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002067/0.2362, allocations: 108.6 kB / 401 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.561e-05/0.2363, allocations: 117.1 kB / 401.1 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003884/0.2402, allocations: 2.732 MB / 403.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01227/0.2524, allocations: 10.43 MB / 414.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.2544, allocations: 1.79 MB / 416.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.2559, allocations: 1.077 MB / 417.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002294/0.2562, allocations: 210.9 kB / 417.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.2562, allocations: 43.56 kB / 417.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=115): time 3.446e-06/0.2562, allocations: 3.938 kB / 417.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=134): time 0.01482/0.2711, allocations: 7.764 MB / 425.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.2711, allocations: 68.72 kB / 425.2 MB, free: 5.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/0.2733, allocations: 1.881 MB / 427.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.018e-05/0.2733, allocations: 49.7 kB / 427.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007284/0.2741, allocations: 1.247 MB / 428.4 MB, free: 2.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/0.2744, allocations: 471 kB / 428.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.2746, allocations: 129.6 kB / 429 MB, free: 1.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 6.981e-05/0.2746, allocations: 309.1 kB / 429.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.2759, allocations: 0.8315 MB / 430.1 MB, free: 440 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.2774, allocations: 1.333 MB / 431.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002758/0.2801, allocations: 2.294 MB / 433.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.2801, allocations: 4 kB / 433.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00398/0.2841, allocations: 2.836 MB / 436.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2842, allocations: 8 kB / 436.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.2842, allocations: 16 kB / 436.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008211/0.285, allocations: 415.4 kB / 437 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.2863, allocations: 415.3 kB / 437.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004879/0.2912, allocations: 5.318 MB / 442.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.2923, allocations: 139.9 kB / 442.9 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.2924, allocations: 71.98 kB / 443 MB, free: 2.879 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.0009598/0.2934, allocations: 0.7888 MB / 443.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.2937, allocations: 209.5 kB / 444 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.2973, allocations: 2.43 MB / 446.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/0.2974, allocations: 16 kB / 446.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.2974, allocations: 4 kB / 446.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.2974, allocations: 3.984 kB / 446.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007131/0.3045, allocations: 5.331 MB / 451.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.3046, allocations: 8.031 kB / 451.8 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009166/0.3055, allocations: 255.6 kB / 452 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/0.3065, allocations: 458 kB / 452.4 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.581e-05/0.3066, allocations: 39.98 kB / 452.5 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005819/0.3124, allocations: 6.751 MB / 459.2 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3124, allocations: 4 kB / 459.2 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004817/0.3173, allocations: 3.632 MB / 462.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000582/0.3178, allocations: 450.6 kB / 463.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.3181, allocations: 35.83 kB / 463.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.3191, allocations: 111.9 kB / 463.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.3193, allocations: 108.7 kB / 463.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.3194, allocations: 44 kB / 463.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001517/0.3209, allocations: 1.307 MB / 464.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3209, allocations: 0 / 464.9 MB, free: 12.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001413/0.3223, allocations: 0.543 MB / 465.5 MB, free: 11.7 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.0004142/0.3228, allocations: 221.3 kB / 465.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003362/0.3261, allocations: 2.444 MB / 468.1 MB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3262, allocations: 8.062 kB / 468.1 MB, free: 8.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.3283, allocations: 1.525 MB / 469.7 MB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/0.3309, allocations: 443.2 kB / 470.1 MB, free: 7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007268/0.3382, allocations: 6.374 MB / 476.5 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.3398, allocations: 2.01 MB / 478.5 MB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3408, allocations: 439.6 kB / 478.9 MB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003681/0.3412, allocations: 131.4 kB / 479 MB, free: 13.93 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3412, allocations: 0 / 479 MB, free: 13.93 MB / 398.1 MB Notification: Performance of Templates: time 0.03931/0.3805, allocations: 26.44 MB / 0.4936 GB, free: 3.719 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 -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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches