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.0009446/0.0009446, allocations: 96.52 kB / 16.3 MB, free: 5.566 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.0009171/0.0009171, allocations: 179.8 kB / 17.19 MB, free: 5.5 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.35/1.35, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.0002798, allocations: 13.5 kB / 300.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1018, allocations: 50.41 MB / 351.1 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01002/0.1119, allocations: 9.585 MB / 360.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007248/0.1192, allocations: 3.822 MB / 364.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001582/0.1208, allocations: 51.75 kB / 364.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.1224, allocations: 0.692 MB / 365.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002256/0.1247, allocations: 0.8568 MB / 366.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008701/0.1256, allocations: 335.5 kB / 366.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00295/0.1285, allocations: 2.219 MB / 368.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00191/0.1305, allocations: 1.833 MB / 370.5 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1871/0.3176, allocations: 1.068 MB / 371.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004387/0.322, allocations: 1.4 MB / 373 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/0.3232, allocations: 170.7 kB / 373.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001982/0.3252, allocations: 363.2 kB / 373.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001369/0.3266, allocations: 0.8232 MB / 374.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.3281, allocations: 0.6235 MB / 375 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006477/0.3346, allocations: 4.246 MB / 379.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3346, allocations: 0 / 379.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.3346, allocations: 0 / 379.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002156/0.3349, allocations: 1.844 kB / 379.2 MB, free: 10.74 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.00972/0.3446, allocations: 3.178 MB / 382.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.3447, allocations: 9.406 kB / 382.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002686/0.3473, allocations: 438.8 kB / 382.8 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004961/0.3523, allocations: 1.865 MB / 384.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002304/0.3526, allocations: 211.2 kB / 384.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000737/0.3533, allocations: 266.7 kB / 385.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006958/0.3603, allocations: 3.501 MB / 388.7 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.925e-05/0.3604, allocations: 9.703 kB / 388.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002525/0.3607, allocations: 109.6 kB / 388.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001539/0.3608, allocations: 118.2 kB / 388.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00544/0.3663, allocations: 2.982 MB / 391.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01913/0.3854, allocations: 11.14 MB / 403 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003146/0.3886, allocations: 2.292 MB / 405.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003659/0.389, allocations: 212.9 kB / 405.5 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.3891, allocations: 47.83 kB / 405.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 4.328e-06/0.3891, allocations: 0 / 405.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01879/0.4079, allocations: 7.777 MB / 413.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.408, allocations: 64.72 kB / 413.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00346/0.4114, allocations: 1.948 MB / 415.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000329/0.4118, allocations: 49.7 kB / 415.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.4129, allocations: 1.312 MB / 416.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006654/0.4136, allocations: 0.5141 MB / 417.2 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.4137, allocations: 36 kB / 417.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.4139, allocations: 373.9 kB / 417.6 MB, free: 240 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001679/0.4156, allocations: 0.8979 MB / 418.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001865/0.4175, allocations: 1.37 MB / 419.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.4193, allocations: 1.094 MB / 421 MB, free: 12.69 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.4193, allocations: 4 kB / 421 MB, free: 12.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005404/0.4247, allocations: 2.978 MB / 424 MB, free: 9.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/0.4248, allocations: 12 kB / 424 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/0.4249, allocations: 15.94 kB / 424 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.426, allocations: 445.3 kB / 424.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.4278, allocations: 455.2 kB / 424.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006295/0.4341, allocations: 5.478 MB / 430.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/0.4367, allocations: 131.8 kB / 430.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003697/0.4371, allocations: 72 kB / 430.5 MB, free: 2.871 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (202): * Single equations (assignments): 197 * 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%) 16,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002368/0.4395, allocations: 0.8485 MB / 431.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000725/0.4402, allocations: 211.8 kB / 431.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004718/0.4449, allocations: 2.595 MB / 434.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-05/0.445, allocations: 16 kB / 434.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.445, allocations: 8 kB / 434.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.445, allocations: 7.969 kB / 434.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.4564, allocations: 5.635 MB / 439.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.4565, allocations: 4 kB / 439.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.4578, allocations: 296 kB / 440.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.4593, allocations: 482 kB / 440.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.4595, allocations: 39.98 kB / 440.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007919/0.4674, allocations: 6.975 MB / 447.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.4675, allocations: 3.938 kB / 447.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008075/0.4755, allocations: 4.082 MB / 451.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/0.4777, allocations: 478.4 kB / 452.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004487/0.4782, allocations: 35.98 kB / 452.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.4795, allocations: 111.9 kB / 452.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003076/0.4798, allocations: 125 kB / 452.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.4799, allocations: 39.98 kB / 452.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002524/0.4824, allocations: 1.332 MB / 453.8 MB, free: 10.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4824, allocations: 0 / 453.8 MB, free: 10.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003051/0.4855, allocations: 0.5859 MB / 454.4 MB, free: 10.19 MB / 366.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 (128): * Single equations (assignments): 123 * 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%) 16,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005548/0.4861, allocations: 185 kB / 454.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004822/0.4909, allocations: 2.601 MB / 457.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.4909, allocations: 0 / 457.2 MB, free: 7.363 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002861/0.4938, allocations: 1.608 MB / 458.8 MB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002977/0.4968, allocations: 460.1 kB / 459.3 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/0.509, allocations: 6.666 MB / 465.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002048/0.5111, allocations: 2.19 MB / 468.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001905/0.513, allocations: 469 kB / 468.6 MB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005242/0.5136, allocations: 139.4 kB / 468.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5136, allocations: 6.234 kB / 468.7 MB, free: 11.72 MB / 382.1 MB Notification: Performance of Templates: time 0.05455/0.5681, allocations: 28.37 MB / 497.1 MB, free: 15.65 MB / 414.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","../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