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.001006/0.001006, allocations: 178.1 kB / 17.04 MB, free: 5.109 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.22/1.22, allocations: 223.3 MB / 241 MB, free: 11.82 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.000738/0.0007379, allocations: 104.6 kB / 292.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.0002469, allocations: 11.94 kB / 351.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2484, allocations: 50.39 MB / 402.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.008879/0.2574, allocations: 10.14 MB / 412.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005573/0.263, allocations: 3.639 MB / 416 MB, free: 18.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007858/0.2638, allocations: 55.75 kB / 416 MB, free: 18.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.2651, allocations: 0.6875 MB / 416.7 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.2666, allocations: 0.804 MB / 417.5 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006285/0.2672, allocations: 335.5 kB / 417.9 MB, free: 16.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002135/0.2694, allocations: 3.234 MB / 421.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.271, allocations: 1.725 MB / 422.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.272, allocations: 1.066 MB / 423.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.2734, allocations: 1.479 MB / 425.4 MB, free: 9.328 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002491/0.2736, allocations: 164 kB / 425.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006735/0.2743, allocations: 359.6 kB / 425.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006322/0.2749, allocations: 0.806 MB / 426.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.2754, allocations: 0.5822 MB / 427.3 MB, free: 7.418 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002447/0.2778, allocations: 4.024 MB / 431.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2778, allocations: 0 / 431.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2779, allocations: 0 / 431.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.756e-05/0.2779, allocations: 0 / 431.3 MB, free: 3.383 MB / 298.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.004934/0.2828, allocations: 2.997 MB / 434.3 MB, free: 328 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.2829, allocations: 8.031 kB / 434.3 MB, free: 320 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.2841, allocations: 412.2 kB / 434.7 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002702/0.2868, allocations: 1.733 MB / 436.4 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.287, allocations: 193 kB / 436.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003367/0.2873, allocations: 255.9 kB / 436.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.2927, allocations: 3.247 MB / 440.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.553e-05/0.2928, allocations: 4 kB / 440.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/0.293, allocations: 100 kB / 440.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.2932, allocations: 116.9 kB / 440.3 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004699/0.2979, allocations: 2.709 MB / 443 MB, free: 7.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/0.3134, allocations: 10.43 MB / 453.5 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.3157, allocations: 1.787 MB / 455.2 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.3175, allocations: 1.073 MB / 456.3 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003014/0.3178, allocations: 203.2 kB / 456.5 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.3178, allocations: 47.56 kB / 456.6 MB, free: 9.379 MB / 330.7 MB Notification: Performance of pre-optimization done (n=115): time 3.978e-06/0.3178, allocations: 4 kB / 456.6 MB, free: 9.375 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.01686/0.3347, allocations: 7.739 MB / 464.3 MB, free: 1.512 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3348, allocations: 68.72 kB / 464.4 MB, free: 1.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002493/0.3373, allocations: 1.861 MB / 466.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.194e-05/0.3374, allocations: 49.7 kB / 466.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009088/0.3383, allocations: 1.245 MB / 467.5 MB, free: 14.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003613/0.3387, allocations: 469.3 kB / 468 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.621e-05/0.3388, allocations: 32 kB / 468 MB, free: 13.76 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3389, allocations: 369.9 kB / 468.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.3403, allocations: 0.8315 MB / 469.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.342, allocations: 1.319 MB / 470.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.3436, allocations: 1.025 MB / 471.6 MB, free: 10 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.3437, allocations: 4 kB / 471.6 MB, free: 9.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.004511/0.3482, allocations: 2.822 MB / 474.4 MB, free: 7.133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3482, allocations: 12 kB / 474.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.3482, allocations: 16 kB / 474.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009246/0.3492, allocations: 419.4 kB / 474.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.3506, allocations: 411.3 kB / 475.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00542/0.356, allocations: 5.314 MB / 480.5 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.3573, allocations: 135.8 kB / 480.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.3574, allocations: 71.98 kB / 480.7 MB, free: 0.5 MB / 346.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 12,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001218/0.3587, allocations: 0.7823 MB / 481.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003014/0.359, allocations: 205.5 kB / 481.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/0.3629, allocations: 2.426 MB / 484.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.868e-05/0.363, allocations: 12 kB / 484.2 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.363, allocations: 4 kB / 484.2 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/0.363, allocations: 15.92 kB / 484.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007839/0.3709, allocations: 5.3 MB / 489.5 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.3709, allocations: 4 kB / 489.5 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.3719, allocations: 268.2 kB / 489.7 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.373, allocations: 465.9 kB / 490.2 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.882e-05/0.3731, allocations: 39.97 kB / 490.2 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006411/0.3796, allocations: 6.734 MB / 497 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3796, allocations: 7.938 kB / 497 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00539/0.385, allocations: 3.608 MB / 0.4889 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000825/0.3858, allocations: 454.5 kB / 0.4893 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/0.3861, allocations: 39.98 kB / 0.4893 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.3872, allocations: 107.9 kB / 0.4894 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.3874, allocations: 112.7 kB / 0.4895 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.764e-05/0.3875, allocations: 39.98 kB / 0.4896 GB, free: 11.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001918/0.3894, allocations: 1.283 MB / 0.4908 GB, free: 9.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3894, allocations: 0 / 0.4908 GB, free: 9.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001882/0.3913, allocations: 0.539 MB / 0.4914 GB, free: 9.359 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004053/0.3917, allocations: 191 kB / 0.4915 GB, free: 9.164 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003976/0.3957, allocations: 2.427 MB / 0.4939 GB, free: 6.688 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.3957, allocations: 4 kB / 0.4939 GB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002427/0.3982, allocations: 1.534 MB / 0.4954 GB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.4001, allocations: 432.8 kB / 0.4958 GB, free: 4.691 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1861/0.5862, allocations: 6.112 MB / 0.5018 GB, free: 94.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002033/0.5883, allocations: 1.991 MB / 0.5037 GB, free: 93.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008166/0.5892, allocations: 138.9 kB / 0.5039 GB, free: 93.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5892, allocations: 0 / 0.5039 GB, free: 93.66 MB / 378.7 MB Notification: Performance of Templates: time 0.06368/0.6529, allocations: 69.71 MB / 0.5719 GB, free: 31.83 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/jenkins1/ws/OpenModelicaLibraryTestingWork/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