Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001242/0.001242, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 73.84 kB / 307 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1112, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01423/0.1255, allocations: 11.83 MB / 369.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1666/0.2921, allocations: 3.995 MB / 373.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.2936, allocations: 70.5 kB / 373.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.2957, allocations: 0.852 MB / 374.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002757/0.2984, allocations: 0.9856 MB / 375.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.2996, allocations: 0.5313 MB / 375.8 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003789/0.3034, allocations: 3.444 MB / 379.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00286/0.3063, allocations: 2.718 MB / 382 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002441/0.3087, allocations: 1.543 MB / 383.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003331/0.3121, allocations: 1.941 MB / 385.4 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008661/0.3129, allocations: 412.3 kB / 385.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.3144, allocations: 0.6211 MB / 386.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.3155, allocations: 1.142 MB / 387.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00208/0.3176, allocations: 1.848 MB / 389.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004006/0.3216, allocations: 5.326 MB / 394.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3216, allocations: 1.375 kB / 394.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3216, allocations: 0 / 394.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001053/0.3217, allocations: 0 / 394.8 MB, free: 1.273 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.008323/0.3301, allocations: 3.728 MB / 398.5 MB, free: 14.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3301, allocations: 8.969 kB / 398.5 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001726/0.3319, allocations: 466.8 kB / 399 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003288/0.3352, allocations: 1.927 MB / 400.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.3353, allocations: 216.3 kB / 401.1 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003925/0.3357, allocations: 266.9 kB / 401.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006351/0.3421, allocations: 3.526 MB / 404.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.709e-05/0.3422, allocations: 0 / 404.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002725/0.3425, allocations: 118.8 kB / 405 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.3426, allocations: 117.3 kB / 405.1 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005613/0.3482, allocations: 2.968 MB / 408.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/0.3674, allocations: 11.1 MB / 419.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.3705, allocations: 2.276 MB / 421.5 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.3726, allocations: 1.19 MB / 422.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003189/0.373, allocations: 207.5 kB / 422.9 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.373, allocations: 43.88 kB / 422.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.336e-06/0.373, allocations: 0 / 422.9 MB, free: 7.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01774/0.3908, allocations: 7.529 MB / 430.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.3909, allocations: 72.7 kB / 430.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003355/0.3942, allocations: 1.988 MB / 432.5 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.3944, allocations: 53.7 kB / 432.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.3955, allocations: 1.31 MB / 433.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000483/0.396, allocations: 0.5049 MB / 434.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000571/0.3966, allocations: 327.3 kB / 434.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3967, allocations: 301.1 kB / 435 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.3983, allocations: 0.8862 MB / 435.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/0.4002, allocations: 1.368 MB / 437.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003568/0.4038, allocations: 2.383 MB / 439.6 MB, free: 5.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.4038, allocations: 8 kB / 439.6 MB, free: 5.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005502/0.4093, allocations: 2.985 MB / 442.6 MB, free: 2.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.4094, allocations: 15.94 kB / 442.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/0.4094, allocations: 16 kB / 442.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.4106, allocations: 464.7 kB / 443.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.4122, allocations: 431.3 kB / 443.5 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007167/0.4194, allocations: 6.1 MB / 449.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.4213, allocations: 123.8 kB / 449.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.4214, allocations: 68 kB / 449.8 MB, free: 11.46 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * 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,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001648/0.4231, allocations: 0.8563 MB / 450.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004747/0.4236, allocations: 213.3 kB / 450.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004843/0.4284, allocations: 2.594 MB / 453.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.991e-05/0.4285, allocations: 16 kB / 453.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.4285, allocations: 11.88 kB / 453.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.048e-05/0.4285, allocations: 7.969 kB / 453.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.4386, allocations: 5.653 MB / 459.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.4386, allocations: 0 / 459.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.4399, allocations: 280 kB / 459.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.4414, allocations: 0.4943 MB / 459.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.4415, allocations: 43.97 kB / 460 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008952/0.4505, allocations: 7.688 MB / 467.6 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.552e-05/0.4505, allocations: 7.938 kB / 467.7 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007094/0.4576, allocations: 3.836 MB / 471.5 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/0.4591, allocations: 474.4 kB / 472 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.4594, allocations: 35.98 kB / 472 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.4606, allocations: 95.89 kB / 472.1 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003322/0.4609, allocations: 125 kB / 472.2 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.4611, allocations: 39.98 kB / 472.2 MB, free: 4.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002383/0.4634, allocations: 1.368 MB / 473.6 MB, free: 2.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4635, allocations: 3.938 kB / 473.6 MB, free: 2.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002363/0.4658, allocations: 0.5859 MB / 474.2 MB, free: 2.348 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * 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,16,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.0005094/0.4663, allocations: 217.5 kB / 474.4 MB, free: 2.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006638/0.473, allocations: 3.36 MB / 477.8 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.473, allocations: 0 / 477.8 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002774/0.4758, allocations: 1.608 MB / 479.4 MB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.4783, allocations: 0.495 MB / 479.9 MB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009272/0.4876, allocations: 5.667 MB / 485.5 MB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002021/0.4896, allocations: 2.14 MB / 487.7 MB, free: 4.691 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001557/0.4912, allocations: 477 kB / 488.1 MB, free: 4.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004412/0.4917, allocations: 135.4 kB / 488.3 MB, free: 4.094 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4917, allocations: 0 / 488.3 MB, free: 4.094 MB / 398.1 MB Notification: Performance of Templates: time 0.05702/0.5487, allocations: 30.96 MB / 0.5071 GB, free: 5.43 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches