Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001508, allocations: 197 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 226.6 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000744/0.0007442, allocations: 106.4 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000224/0.0002242, allocations: 4 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2048, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.00664/0.2115, allocations: 8.524 MB / 416.6 MB, free: 19.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00415/0.2157, allocations: 2.961 MB / 419.5 MB, free: 16.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009344/0.2166, allocations: 55.75 kB / 419.6 MB, free: 16.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.2177, allocations: 0.528 MB / 420.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001273/0.219, allocations: 0.6681 MB / 420.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.2195, allocations: 251.6 kB / 421 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.2212, allocations: 2.627 MB / 423.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001658/0.2229, allocations: 1.957 MB / 425.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008538/0.2237, allocations: 0.8832 MB / 426.5 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.2248, allocations: 1.21 MB / 427.7 MB, free: 7.941 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002031/0.225, allocations: 132 kB / 427.8 MB, free: 7.812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005183/0.2256, allocations: 247.8 kB / 428.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000496/0.2261, allocations: 0.6776 MB / 428.8 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008072/0.2269, allocations: 1.145 MB / 429.9 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00187/0.2288, allocations: 3.323 MB / 433.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2288, allocations: 0 / 433.2 MB, free: 2.402 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2288, allocations: 4 kB / 433.2 MB, free: 2.398 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.762e-05/0.2288, allocations: 3.938 kB / 433.2 MB, free: 2.395 MB / 298.7 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.003784/0.2326, allocations: 2.48 MB / 435.7 MB, free: 15.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.2327, allocations: 8.031 kB / 435.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007822/0.2334, allocations: 305.6 kB / 436 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.2357, allocations: 1.488 MB / 437.5 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.2359, allocations: 176.5 kB / 437.7 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/0.2362, allocations: 211.9 kB / 437.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004554/0.2408, allocations: 2.796 MB / 440.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.187e-05/0.2408, allocations: 4 kB / 440.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001889/0.241, allocations: 80 kB / 440.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.2412, allocations: 108.2 kB / 440.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004158/0.2453, allocations: 2.359 MB / 443.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01281/0.2582, allocations: 8.647 MB / 451.9 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.2605, allocations: 1.713 MB / 453.6 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.2622, allocations: 0.9801 MB / 454.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000277/0.2625, allocations: 207.1 kB / 454.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.2626, allocations: 59.48 kB / 454.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 4.328e-06/0.2626, allocations: 0 / 454.8 MB, free: 12.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.01246/0.2751, allocations: 6.333 MB / 461.2 MB, free: 5.645 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.2751, allocations: 68.39 kB / 461.2 MB, free: 5.562 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.2771, allocations: 1.43 MB / 462.7 MB, free: 4.121 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.491e-05/0.2772, allocations: 45.7 kB / 462.7 MB, free: 4.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006622/0.2779, allocations: 1.041 MB / 463.7 MB, free: 3.016 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/0.2782, allocations: 406.1 kB / 464.1 MB, free: 2.613 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.2783, allocations: 28 kB / 464.2 MB, free: 2.586 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2784, allocations: 361.9 kB / 464.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.2795, allocations: 0.6949 MB / 465.2 MB, free: 1.531 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.2808, allocations: 1.077 MB / 466.3 MB, free: 304 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.2834, allocations: 1.879 MB / 468.2 MB, free: 14.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.2835, allocations: 4 kB / 468.2 MB, free: 14.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003997/0.2875, allocations: 2.425 MB / 470.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.2875, allocations: 11.98 kB / 470.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.2875, allocations: 12 kB / 470.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009505/0.2885, allocations: 419.3 kB / 471 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.2897, allocations: 343.4 kB / 471.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006399/0.2961, allocations: 6.444 MB / 477.8 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.2972, allocations: 99.94 kB / 477.9 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.2974, allocations: 63.92 kB / 478 MB, free: 3.988 MB / 346.7 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 (157): * Single equations (assignments): 153 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001137/0.2985, allocations: 0.6948 MB / 478.7 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002783/0.2988, allocations: 158 kB / 478.8 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00365/0.3024, allocations: 2.142 MB / 481 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.3025, allocations: 12 kB / 481 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3025, allocations: 4 kB / 481 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.3025, allocations: 11.91 kB / 481 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007485/0.31, allocations: 4.615 MB / 485.6 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.31, allocations: 0 / 485.6 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009068/0.3109, allocations: 224.1 kB / 485.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.3121, allocations: 454.1 kB / 486.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.796e-05/0.3122, allocations: 31.98 kB / 486.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007643/0.3198, allocations: 7.921 MB / 494.2 MB, free: 3.016 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.3199, allocations: 4 kB / 494.2 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005143/0.325, allocations: 3.129 MB / 497.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008742/0.3259, allocations: 398.8 kB / 497.7 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003456/0.3263, allocations: 31.94 kB / 497.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009596/0.3273, allocations: 91.89 kB / 497.9 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.3275, allocations: 96.75 kB / 498 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-05/0.3276, allocations: 32 kB / 498 MB, free: 15.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001665/0.3293, allocations: 0.981 MB / 499 MB, free: 14.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3293, allocations: 0 / 499 MB, free: 14.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00178/0.3311, allocations: 460 kB / 499.4 MB, free: 13.7 MB / 378.7 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 (102): * Single equations (assignments): 98 * 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%) 6,(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.0004073/0.3315, allocations: 191.1 kB / 499.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.3354, allocations: 2.228 MB / 0.4901 GB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.3354, allocations: 4.812 kB / 0.4901 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002413/0.3378, allocations: 1.45 MB / 0.4915 GB, free: 9.711 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.3406, allocations: 402.9 kB / 0.4919 GB, free: 9.324 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008145/0.3488, allocations: 5.361 MB / 0.4971 GB, free: 3.891 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.3505, allocations: 1.784 MB / 0.4989 GB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005097/0.351, allocations: 123.4 kB / 0.499 GB, free: 1.957 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.351, allocations: 0 / 0.499 GB, free: 1.957 MB / 378.7 MB Notification: Performance of Templates: time 0.1985/0.5495, allocations: 68.68 MB / 0.566 GB, free: 32.54 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches