Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009214/0.0009215, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.6 MB / 244.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008502/0.0008502, allocations: 101.3 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002818/0.000282, allocations: 11.94 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2679, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.009058/0.277, allocations: 10.46 MB / 418 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007371/0.2844, allocations: 3.745 MB / 421.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00262/0.287, allocations: 55.75 kB / 421.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002922/0.29, allocations: 0.7031 MB / 422.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003741/0.2938, allocations: 0.8351 MB / 423.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.2954, allocations: 347.5 kB / 423.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004256/0.2996, allocations: 3.496 MB / 427.1 MB, free: 8.145 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003937/0.3036, allocations: 1.841 MB / 429 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00263/0.3062, allocations: 1.148 MB / 430.1 MB, free: 5.117 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/0.309, allocations: 1.58 MB / 431.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001017/0.3101, allocations: 172 kB / 431.9 MB, free: 3.363 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002009/0.3121, allocations: 367.7 kB / 432.2 MB, free: 3.004 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00148/0.3136, allocations: 0.8643 MB / 433.1 MB, free: 2.137 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.3152, allocations: 0.6289 MB / 433.7 MB, free: 1.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00554/0.3208, allocations: 4.281 MB / 438 MB, free: 13.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3208, allocations: 3.938 kB / 438 MB, free: 13.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.3208, allocations: 0 / 438 MB, free: 13.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002547/0.3211, allocations: 0 / 438 MB, free: 13.2 MB / 314.7 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.009164/0.3303, allocations: 3.205 MB / 441.2 MB, free: 9.934 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3303, allocations: 8.031 kB / 441.2 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002386/0.3327, allocations: 483.7 kB / 441.7 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004733/0.3375, allocations: 1.84 MB / 443.5 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.3377, allocations: 209.4 kB / 443.7 MB, free: 7.348 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004358/0.3381, allocations: 263.9 kB / 444 MB, free: 7.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006359/0.3445, allocations: 3.521 MB / 447.5 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.997e-05/0.3446, allocations: 7.938 kB / 447.5 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.3448, allocations: 108 kB / 447.6 MB, free: 3.375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/0.345, allocations: 125.2 kB / 447.8 MB, free: 3.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005251/0.3503, allocations: 2.984 MB / 450.7 MB, free: 260 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01879/0.3691, allocations: 11.15 MB / 461.9 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00296/0.3721, allocations: 2.296 MB / 464.2 MB, free: 2.312 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002092/0.3742, allocations: 1.207 MB / 465.4 MB, free: 1.105 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003201/0.3745, allocations: 203.5 kB / 465.6 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.3746, allocations: 47.81 kB / 465.6 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of pre-optimization done (n=131): time 3.887e-06/0.3746, allocations: 0 / 465.6 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of matching and sorting (n=148): time 0.01756/0.3922, allocations: 7.651 MB / 473.3 MB, free: 9.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.3923, allocations: 68.72 kB / 473.4 MB, free: 8.941 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003618/0.3959, allocations: 1.96 MB / 475.3 MB, free: 6.938 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002638/0.3962, allocations: 53.7 kB / 475.4 MB, free: 6.879 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.3972, allocations: 1.316 MB / 476.7 MB, free: 5.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006424/0.3979, allocations: 0.5006 MB / 477.2 MB, free: 5.039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.398, allocations: 36 kB / 477.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3982, allocations: 377.9 kB / 477.6 MB, free: 4.629 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/0.3998, allocations: 0.894 MB / 478.5 MB, free: 3.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/0.4017, allocations: 1.379 MB / 479.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0019/0.4037, allocations: 1.092 MB / 481 MB, free: 1.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.305e-05/0.4037, allocations: 4 kB / 481 MB, free: 1.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005586/0.4093, allocations: 3.005 MB / 484 MB, free: 14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.027e-05/0.4094, allocations: 18.77 kB / 484 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/0.4094, allocations: 16 kB / 484 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.4107, allocations: 464.7 kB / 484.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.4124, allocations: 439.3 kB / 484.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006937/0.4194, allocations: 5.601 MB / 490.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.4216, allocations: 131.8 kB / 490.6 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003971/0.422, allocations: 75.98 kB / 490.7 MB, free: 7.02 MB / 362.7 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 (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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002/0.424, allocations: 0.8485 MB / 491.5 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007184/0.4247, allocations: 209.5 kB / 491.7 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005079/0.4298, allocations: 2.611 MB / 494.3 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.972e-05/0.4299, allocations: 27.95 kB / 494.4 MB, free: 3.277 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/0.4299, allocations: 4 kB / 494.4 MB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.4299, allocations: 7.969 kB / 494.4 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.4411, allocations: 5.671 MB / 0.4883 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.4411, allocations: 0 / 0.4883 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.4424, allocations: 296 kB / 0.4886 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001486/0.4439, allocations: 0.4901 MB / 0.4891 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.444, allocations: 39.98 kB / 0.4891 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00811/0.4521, allocations: 7.045 MB / 0.496 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.649e-06/0.4522, allocations: 7.938 kB / 0.496 GB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006746/0.4589, allocations: 3.869 MB / 0.4998 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/0.4605, allocations: 482.4 kB / 0.5003 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/0.4612, allocations: 32 kB / 0.5003 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.4628, allocations: 119.9 kB / 0.5004 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/0.4631, allocations: 125 kB / 0.5005 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.4633, allocations: 43.98 kB / 0.5006 GB, free: 404 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1941/0.6573, allocations: 1.339 MB / 0.5019 GB, free: 89.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6574, allocations: 0 / 0.5019 GB, free: 89.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002878/0.6603, allocations: 0.5843 MB / 0.5024 GB, free: 89.42 MB / 378.7 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 (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%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005116/0.6608, allocations: 187.5 kB / 0.5026 GB, free: 89.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004402/0.6652, allocations: 2.627 MB / 0.5052 GB, free: 88.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6652, allocations: 0 / 0.5052 GB, free: 88.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002444/0.6677, allocations: 1.609 MB / 0.5068 GB, free: 88.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/0.6707, allocations: 478 kB / 0.5072 GB, free: 87.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.6818, allocations: 6.73 MB / 0.5138 GB, free: 84.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.6832, allocations: 2.106 MB / 0.5158 GB, free: 83.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006597/0.6839, allocations: 151.5 kB / 0.516 GB, free: 83.21 MB / 378.7 MB Notification: Performance of SimCode: time 8.41e-07/0.6839, allocations: 0 / 0.516 GB, free: 83.21 MB / 378.7 MB Notification: Performance of Templates: time 0.05856/0.7424, allocations: 74.84 MB / 0.5891 GB, free: 10.54 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches