Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008793/0.0008794, allocations: 100.1 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009684/0.0009684, allocations: 200.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002441/0.0002442, allocations: 8 kB / 306.6 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1102, allocations: 51.49 MB / 358.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009359/0.1196, allocations: 7.856 MB / 365.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007613/0.1272, allocations: 3.041 MB / 369 MB, free: 3.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002123/0.1294, allocations: 55.69 kB / 369 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002269/0.1317, allocations: 0.5558 MB / 369.6 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002976/0.1347, allocations: 0.6621 MB / 370.2 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009991/0.1357, allocations: 255.6 kB / 370.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2416/0.3773, allocations: 1.666 MB / 372.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002771/0.3801, allocations: 1.527 MB / 373.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001704/0.3818, allocations: 0.8134 MB / 374.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001799/0.3836, allocations: 1.066 MB / 375.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003649/0.384, allocations: 129.2 kB / 375.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007054/0.3847, allocations: 210.4 kB / 375.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008471/0.3856, allocations: 0.6428 MB / 376.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006887/0.3863, allocations: 496 kB / 377 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004611/0.3909, allocations: 3.292 MB / 380.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.3909, allocations: 0 / 380.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3909, allocations: 2.078 kB / 380.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001398/0.3911, allocations: 0 / 380.3 MB, free: 9.207 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005847/0.3969, allocations: 2.487 MB / 382.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.397, allocations: 8.969 kB / 382.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.3981, allocations: 301.2 kB / 383.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003167/0.4013, allocations: 1.459 MB / 384.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.4015, allocations: 171.4 kB / 384.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004003/0.4019, allocations: 208.8 kB / 384.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006289/0.4082, allocations: 2.774 MB / 387.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.926e-05/0.4083, allocations: 6.859 kB / 387.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000219/0.4085, allocations: 88.5 kB / 387.8 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001534/0.4087, allocations: 107.6 kB / 387.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004764/0.4135, allocations: 2.352 MB / 390.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.4269, allocations: 8.599 MB / 398.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.4292, allocations: 1.726 MB / 400.6 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002998/0.4295, allocations: 202.4 kB / 400.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.4295, allocations: 42.72 kB / 400.8 MB, free: 15.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.515e-06/0.4295, allocations: 0 / 400.8 MB, free: 15.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01334/0.4429, allocations: 6.313 MB / 407.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.4429, allocations: 66.7 kB / 407.2 MB, free: 9.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/0.4449, allocations: 1.391 MB / 408.6 MB, free: 7.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.51e-05/0.445, allocations: 45.7 kB / 408.6 MB, free: 7.578 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.4457, allocations: 1.034 MB / 409.7 MB, free: 6.535 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/0.446, allocations: 407.5 kB / 410.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.451e-05/0.446, allocations: 28 kB / 410.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.4462, allocations: 363.6 kB / 410.4 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4473, allocations: 0.6988 MB / 411.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.4487, allocations: 1.081 MB / 412.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.45, allocations: 0.8613 MB / 413.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.45, allocations: 8 kB / 413.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004025/0.4541, allocations: 2.417 MB / 415.5 MB, free: 500 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.4541, allocations: 8 kB / 415.5 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.4541, allocations: 12 kB / 415.5 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009248/0.4551, allocations: 399.2 kB / 415.9 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.4563, allocations: 335.5 kB / 416.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006488/0.4628, allocations: 6.375 MB / 422.6 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.4643, allocations: 107.8 kB / 422.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.4644, allocations: 56 kB / 422.8 MB, free: 8.805 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001735/0.4662, allocations: 0.6969 MB / 423.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.4665, allocations: 154.1 kB / 423.6 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003704/0.4702, allocations: 2.138 MB / 425.8 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.4702, allocations: 12 kB / 425.8 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4702, allocations: 4 kB / 425.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.4703, allocations: 7.922 kB / 425.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007839/0.4781, allocations: 4.563 MB / 430.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4781, allocations: 4 kB / 430.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009309/0.4791, allocations: 223.7 kB / 430.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.4801, allocations: 433.3 kB / 431 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.258e-05/0.4802, allocations: 31.98 kB / 431 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007266/0.4875, allocations: 7.876 MB / 438.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.4875, allocations: 7.938 kB / 438.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004947/0.4925, allocations: 3.304 MB / 442.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009835/0.4935, allocations: 383 kB / 442.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/0.4937, allocations: 28 kB / 442.6 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008635/0.4946, allocations: 95.86 kB / 442.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.4948, allocations: 90.89 kB / 442.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.268e-05/0.4949, allocations: 35.98 kB / 442.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001364/0.4963, allocations: 0.9498 MB / 443.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4963, allocations: 0 / 443.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001631/0.4979, allocations: 468 kB / 444.2 MB, free: 2.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003103/0.4982, allocations: 163.8 kB / 444.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.5017, allocations: 2.234 MB / 446.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5017, allocations: 0 / 446.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.5038, allocations: 1.437 MB / 448.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001773/0.5056, allocations: 382.9 kB / 448.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007575/0.5132, allocations: 5.309 MB / 453.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/0.5147, allocations: 1.85 MB / 455.6 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.5159, allocations: 365.6 kB / 456 MB, free: 6.512 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/0.5162, allocations: 111.4 kB / 456.1 MB, free: 6.402 MB / 366.1 MB Notification: Performance of SimCode: time 2.174e-06/0.5163, allocations: 0 / 456.1 MB, free: 6.402 MB / 366.1 MB Notification: Performance of Templates: time 0.03944/0.5557, allocations: 22.13 MB / 478.2 MB, free: 0.5117 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches