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.001119/0.001119, allocations: 113.1 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2654, allocations: 50.54 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.0132/0.2787, allocations: 11.84 MB / 421.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007971/0.2867, allocations: 3.99 MB / 425.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002336/0.2891, allocations: 63.75 kB / 425.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002591/0.2917, allocations: 0.8656 MB / 426.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003396/0.2952, allocations: 0.9822 MB / 427.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.2966, allocations: 0.5226 MB / 428.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.3009, allocations: 3.464 MB / 431.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003227/0.3042, allocations: 2.708 MB / 434.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002546/0.3068, allocations: 1.561 MB / 435.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003315/0.3101, allocations: 1.946 MB / 437.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009982/0.3111, allocations: 408 kB / 438.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001607/0.3127, allocations: 0.6207 MB / 438.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.3139, allocations: 1.149 MB / 440 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002368/0.3163, allocations: 1.851 MB / 441.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005942/0.3222, allocations: 5.379 MB / 447.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3223, allocations: 0 / 447.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3223, allocations: 0 / 447.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001516/0.3225, allocations: 0 / 447.3 MB, free: 12.05 MB / 366.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.008643/0.3311, allocations: 3.734 MB / 451 MB, free: 8.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3312, allocations: 8.031 kB / 451 MB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.3329, allocations: 468.7 kB / 451.5 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003763/0.3367, allocations: 1.985 MB / 453.5 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/0.3369, allocations: 209.3 kB / 453.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003941/0.3373, allocations: 260 kB / 453.9 MB, free: 5.285 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00588/0.3432, allocations: 3.521 MB / 457.4 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.629e-05/0.3433, allocations: 7.906 kB / 457.4 MB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.3435, allocations: 112 kB / 457.6 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.3437, allocations: 125.2 kB / 457.7 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0051/0.3488, allocations: 2.968 MB / 460.6 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.3664, allocations: 10.97 MB / 471.6 MB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002945/0.3694, allocations: 2.277 MB / 473.9 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001945/0.3714, allocations: 1.172 MB / 475.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003059/0.3717, allocations: 207.5 kB / 475.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.3718, allocations: 55.88 kB / 475.3 MB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 3.546e-06/0.3718, allocations: 0 / 475.3 MB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01574/0.3875, allocations: 7.512 MB / 482.8 MB, free: 7.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.3876, allocations: 68.72 kB / 482.9 MB, free: 7.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002991/0.3906, allocations: 1.996 MB / 484.9 MB, free: 5.469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.3908, allocations: 45.7 kB / 484.9 MB, free: 5.418 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009311/0.3917, allocations: 1.32 MB / 486.3 MB, free: 4.082 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/0.3922, allocations: 0.5045 MB / 486.8 MB, free: 3.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005237/0.3927, allocations: 327.2 kB / 487.1 MB, free: 3.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.998e-05/0.3929, allocations: 305.1 kB / 487.4 MB, free: 2.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.3943, allocations: 0.8823 MB / 488.3 MB, free: 2.059 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/0.396, allocations: 1.375 MB / 489.6 MB, free: 484 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003285/0.3993, allocations: 2.381 MB / 492 MB, free: 13.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.3993, allocations: 4 kB / 492 MB, free: 13.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005119/0.4045, allocations: 2.994 MB / 495 MB, free: 10.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/0.4045, allocations: 12 kB / 495 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/0.4045, allocations: 12 kB / 495 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.4057, allocations: 464.7 kB / 495.5 MB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.4072, allocations: 431.3 kB / 495.9 MB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.4137, allocations: 6.086 MB / 0.4902 GB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.4155, allocations: 119.8 kB / 0.4904 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001702/0.4157, allocations: 83.92 kB / 0.4904 GB, free: 3.387 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.001559/0.4172, allocations: 0.8563 MB / 0.4913 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004852/0.4177, allocations: 213.4 kB / 0.4915 GB, free: 2.309 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004423/0.4221, allocations: 2.595 MB / 0.494 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.545e-05/0.4222, allocations: 20 kB / 0.494 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.4222, allocations: 4 kB / 0.494 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.4222, allocations: 15.84 kB / 0.494 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009702/0.432, allocations: 5.611 MB / 0.4995 GB, free: 9.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.432, allocations: 8.094 kB / 0.4995 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.4332, allocations: 275.6 kB / 0.4998 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.4346, allocations: 0.5008 MB / 0.5003 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.4347, allocations: 35.98 kB / 0.5003 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007799/0.4425, allocations: 7.674 MB / 0.5078 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.4425, allocations: 7.938 kB / 0.5078 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006215/0.4487, allocations: 3.831 MB / 0.5116 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.45, allocations: 482.3 kB / 0.512 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/0.4503, allocations: 39.98 kB / 0.5121 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.4514, allocations: 95.89 kB / 0.5122 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.4517, allocations: 125 kB / 0.5123 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.4518, allocations: 47.98 kB / 0.5123 GB, free: 12.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002035/0.4539, allocations: 1.364 MB / 0.5137 GB, free: 10.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.803e-06/0.4539, allocations: 0 / 0.5137 GB, free: 10.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001997/0.4559, allocations: 0.5898 MB / 0.5142 GB, free: 10.27 MB / 446.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.0004965/0.4564, allocations: 222 kB / 0.5144 GB, free: 10.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004294/0.4607, allocations: 2.616 MB / 0.517 GB, free: 7.379 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4607, allocations: 0 / 0.517 GB, free: 7.379 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.4633, allocations: 1.603 MB / 0.5186 GB, free: 5.738 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/0.4658, allocations: 0.4926 MB / 0.519 GB, free: 5.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009439/0.4752, allocations: 5.647 MB / 0.5246 GB, free: 15.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001852/0.4771, allocations: 2.112 MB / 0.5266 GB, free: 13.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007482/0.4779, allocations: 151.4 kB / 0.5268 GB, free: 13.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4779, allocations: 0 / 0.5268 GB, free: 13.24 MB / 462.1 MB Notification: Performance of Templates: time 0.2847/0.7626, allocations: 75.76 MB / 0.6007 GB, free: 71.74 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/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