Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 110 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 191 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 47.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2885, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01288/0.3014, allocations: 11.81 MB / 412.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007066/0.3085, allocations: 3.917 MB / 416.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.3102, allocations: 63.75 kB / 416.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00229/0.3125, allocations: 0.885 MB / 417.4 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002945/0.3154, allocations: 1.017 MB / 418.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.3167, allocations: 0.5303 MB / 419 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003771/0.3205, allocations: 3.436 MB / 422.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002777/0.3233, allocations: 2.712 MB / 425.1 MB, free: 352 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.3252, allocations: 1.542 MB / 426.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.3274, allocations: 1.938 MB / 428.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005098/0.3279, allocations: 408 kB / 429 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.3289, allocations: 0.644 MB / 429.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.3299, allocations: 1.149 MB / 430.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.3317, allocations: 1.839 MB / 432.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004769/0.3365, allocations: 5.37 MB / 438 MB, free: 3.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.948e-05/0.3366, allocations: 3.984 kB / 438 MB, free: 3.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3366, allocations: 0 / 438 MB, free: 3.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.167e-05/0.3367, allocations: 0 / 438 MB, free: 3.418 MB / 350.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.006893/0.3436, allocations: 3.711 MB / 441.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.3436, allocations: 8.031 kB / 441.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00129/0.3449, allocations: 432.7 kB / 442.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.348, allocations: 1.972 MB / 444.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.3482, allocations: 197.4 kB / 444.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004095/0.3486, allocations: 271.9 kB / 444.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005725/0.3543, allocations: 3.521 MB / 448.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.091e-05/0.3544, allocations: 11.88 kB / 448.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002313/0.3547, allocations: 108 kB / 448.2 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/0.3548, allocations: 121.2 kB / 448.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004917/0.3597, allocations: 2.964 MB / 451.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01635/0.3761, allocations: 10.97 MB / 462.3 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/0.3789, allocations: 2.277 MB / 464.5 MB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.3808, allocations: 1.18 MB / 465.7 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002915/0.3811, allocations: 199.5 kB / 465.9 MB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.3811, allocations: 59.86 kB / 466 MB, free: 6.676 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.817e-06/0.3811, allocations: 0 / 466 MB, free: 6.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=148): time 0.01525/0.3964, allocations: 7.505 MB / 473.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.3965, allocations: 72.72 kB / 473.5 MB, free: 14.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002808/0.3993, allocations: 1.979 MB / 475.5 MB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.3994, allocations: 49.7 kB / 475.6 MB, free: 12.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009034/0.4003, allocations: 1.308 MB / 476.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004286/0.4008, allocations: 0.5045 MB / 477.4 MB, free: 11.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005411/0.4013, allocations: 331.2 kB / 477.7 MB, free: 10.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.4014, allocations: 301.1 kB / 478 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4029, allocations: 0.8901 MB / 478.9 MB, free: 9.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.4046, allocations: 1.375 MB / 480.3 MB, free: 7.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00325/0.4079, allocations: 2.377 MB / 482.6 MB, free: 5.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.4079, allocations: 7.938 kB / 482.6 MB, free: 5.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004993/0.4129, allocations: 2.982 MB / 485.6 MB, free: 2.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.413, allocations: 16 kB / 485.6 MB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.144e-05/0.413, allocations: 16 kB / 485.7 MB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.4141, allocations: 454.2 kB / 486.1 MB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.4157, allocations: 435.3 kB / 486.5 MB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006425/0.4221, allocations: 6.104 MB / 492.6 MB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.4237, allocations: 123.8 kB / 492.8 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.4239, allocations: 68 kB / 492.8 MB, free: 10.84 MB / 414.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.001477/0.4254, allocations: 0.8602 MB / 493.7 MB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004435/0.4258, allocations: 213.4 kB / 493.9 MB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004273/0.4301, allocations: 2.583 MB / 496.5 MB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/0.4301, allocations: 16 kB / 496.5 MB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4302, allocations: 4 kB / 496.5 MB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.4302, allocations: 11.97 kB / 496.5 MB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008849/0.439, allocations: 5.606 MB / 0.4903 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4391, allocations: 8.062 kB / 0.4903 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.4403, allocations: 291.5 kB / 0.4906 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.4416, allocations: 0.4902 MB / 0.4911 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.4417, allocations: 35.98 kB / 0.4911 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00797/0.4497, allocations: 7.682 MB / 0.4986 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.171e-05/0.4497, allocations: 4.141 kB / 0.4986 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006074/0.4558, allocations: 3.843 MB / 0.5024 GB, free: 4.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.457, allocations: 482.4 kB / 0.5029 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002612/0.4572, allocations: 39.98 kB / 0.5029 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.4583, allocations: 91.89 kB / 0.503 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002903/0.4586, allocations: 129 kB / 0.5031 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.906e-05/0.4587, allocations: 43.98 kB / 0.5031 GB, free: 3.707 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001902/0.4606, allocations: 1.356 MB / 0.5045 GB, free: 2.328 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4606, allocations: 0 / 0.5045 GB, free: 2.328 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001861/0.4625, allocations: 0.586 MB / 0.505 GB, free: 1.742 MB / 430.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.0004365/0.463, allocations: 229.2 kB / 0.5053 GB, free: 1.512 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.467, allocations: 2.604 MB / 0.5078 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.467, allocations: 8.062 kB / 0.5078 GB, free: 14.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002439/0.4694, allocations: 1.599 MB / 0.5094 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.4713, allocations: 496.5 kB / 0.5098 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008047/0.4793, allocations: 5.601 MB / 0.5153 GB, free: 7.055 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001716/0.4811, allocations: 2.132 MB / 0.5174 GB, free: 4.891 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001198/0.4823, allocations: 473 kB / 0.5179 GB, free: 4.426 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.4827, allocations: 135.4 kB / 0.518 GB, free: 4.297 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4827, allocations: 3.938 kB / 0.518 GB, free: 4.293 MB / 446.1 MB Notification: Performance of Templates: time 0.2717/0.7544, allocations: 31.48 MB / 0.5487 GB, free: 123 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches