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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB 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: 101.9 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008568/0.0008569, allocations: 43.89 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2395, allocations: 49.43 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009879/0.2494, allocations: 11.38 MB / 410.9 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006314/0.2558, allocations: 3.817 MB / 414.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.2576, allocations: 59.69 kB / 414.7 MB, free: 18.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.2595, allocations: 0.7383 MB / 415.5 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.2619, allocations: 0.8469 MB / 416.3 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009511/0.2628, allocations: 463.5 kB / 416.8 MB, free: 16.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002821/0.2657, allocations: 3.606 MB / 420.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/0.2677, allocations: 2.165 MB / 422.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.269, allocations: 1.257 MB / 423.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.2706, allocations: 1.728 MB / 425.5 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003337/0.271, allocations: 240 kB / 425.8 MB, free: 6.934 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008744/0.2719, allocations: 0.4917 MB / 426.3 MB, free: 6.441 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006167/0.2725, allocations: 0.9034 MB / 427.2 MB, free: 5.535 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.2736, allocations: 1.566 MB / 428.7 MB, free: 3.961 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003548/0.2772, allocations: 4.875 MB / 433.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2772, allocations: 0 / 433.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2772, allocations: 4 kB / 433.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.555e-05/0.2773, allocations: 0 / 433.6 MB, free: 15.07 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.007125/0.2845, allocations: 3.484 MB / 437.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2845, allocations: 12.03 kB / 437.1 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.2858, allocations: 409 kB / 437.5 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00297/0.2887, allocations: 1.788 MB / 439.3 MB, free: 9.258 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.2889, allocations: 197.3 kB / 439.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003289/0.2892, allocations: 251.9 kB / 439.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004924/0.2942, allocations: 3.247 MB / 443 MB, free: 5.492 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.87e-05/0.2943, allocations: 11.89 kB / 443 MB, free: 5.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000207/0.2945, allocations: 111.9 kB / 443.1 MB, free: 5.371 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.2946, allocations: 112.9 kB / 443.2 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004273/0.2989, allocations: 2.701 MB / 445.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01625/0.3152, allocations: 10.37 MB / 456.3 MB, free: 7.828 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002146/0.3173, allocations: 1.778 MB / 458 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.319, allocations: 1.057 MB / 459.1 MB, free: 4.891 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000286/0.3193, allocations: 195.2 kB / 459.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.3194, allocations: 51.55 kB / 459.3 MB, free: 4.602 MB / 330.7 MB Notification: Performance of pre-optimization done (n=115): time 3.476e-06/0.3194, allocations: 4 kB / 459.4 MB, free: 4.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.01895/0.3383, allocations: 7.418 MB / 466.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.3384, allocations: 68.72 kB / 466.8 MB, free: 12.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002662/0.3411, allocations: 1.865 MB / 468.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.471e-05/0.3412, allocations: 53.7 kB / 468.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008047/0.342, allocations: 1.233 MB / 470 MB, free: 9.801 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.3424, allocations: 473.2 kB / 470.4 MB, free: 9.332 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004508/0.3428, allocations: 295.3 kB / 470.7 MB, free: 9.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.3429, allocations: 305.1 kB / 471 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.3442, allocations: 0.812 MB / 471.8 MB, free: 7.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.3458, allocations: 1.315 MB / 473.2 MB, free: 6.391 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.3489, allocations: 2.254 MB / 475.4 MB, free: 3.926 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.3489, allocations: 4 kB / 475.4 MB, free: 3.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004982/0.3539, allocations: 2.795 MB / 478.2 MB, free: 1.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.3539, allocations: 12.28 kB / 478.2 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/0.354, allocations: 20 kB / 478.2 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.355, allocations: 421 kB / 478.7 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.3564, allocations: 399.3 kB / 479 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00588/0.3623, allocations: 5.308 MB / 484.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.3643, allocations: 127.8 kB / 484.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/0.3645, allocations: 71.98 kB / 484.6 MB, free: 10.47 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.001457/0.3659, allocations: 0.79 MB / 485.3 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004075/0.3664, allocations: 201.6 kB / 485.5 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003969/0.3703, allocations: 2.395 MB / 487.9 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/0.3704, allocations: 19.98 kB / 488 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3704, allocations: 4 kB / 488 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.3704, allocations: 3.984 kB / 488 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009121/0.3795, allocations: 5.276 MB / 493.2 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.3796, allocations: 7.984 kB / 493.2 MB, free: 1.574 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3807, allocations: 248.1 kB / 493.5 MB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.3818, allocations: 467 kB / 493.9 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.164e-05/0.3819, allocations: 35.98 kB / 494 MB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006517/0.3884, allocations: 6.736 MB / 0.489 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3885, allocations: 4 kB / 0.489 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2413/0.6297, allocations: 22.07 MB / 0.5105 GB, free: 87.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007557/0.6305, allocations: 451.4 kB / 0.511 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.6307, allocations: 35.47 kB / 0.511 GB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.6319, allocations: 104.2 kB / 0.5111 GB, free: 86.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.6321, allocations: 114.1 kB / 0.5112 GB, free: 86.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.582e-05/0.6322, allocations: 42.58 kB / 0.5113 GB, free: 86.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001532/0.6337, allocations: 1.29 MB / 0.5125 GB, free: 86.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6338, allocations: 0 / 0.5125 GB, free: 86.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002024/0.6358, allocations: 0.7431 MB / 0.5132 GB, free: 86.39 MB / 378.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.000352/0.6361, allocations: 222.5 kB / 0.5135 GB, free: 86.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003146/0.6393, allocations: 2.412 MB / 0.5158 GB, free: 85.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.6393, allocations: 3.875 kB / 0.5158 GB, free: 85.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001988/0.6413, allocations: 1.507 MB / 0.5173 GB, free: 84.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.6431, allocations: 426.6 kB / 0.5177 GB, free: 84.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007689/0.6508, allocations: 7.616 MB / 0.5251 GB, free: 77.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.652, allocations: 2.056 MB / 0.5271 GB, free: 75.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001231/0.6533, allocations: 439 kB / 0.5276 GB, free: 74.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003922/0.6537, allocations: 135.4 kB / 0.5277 GB, free: 74.58 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6537, allocations: 0 / 0.5277 GB, free: 74.58 MB / 378.7 MB Notification: Performance of Templates: time 0.04083/0.6945, allocations: 31.22 MB / 0.5582 GB, free: 43.64 MB / 378.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../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