Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007228/0.0007228, allocations: 95.64 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002085, allocations: 8 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2323, allocations: 51.42 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.006215/0.2386, allocations: 8.541 MB / 420.6 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003571/0.2422, allocations: 3.623 MB / 424.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.2427, allocations: 47.75 kB / 424.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009864/0.2437, allocations: 0.5942 MB / 424.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.2449, allocations: 0.6876 MB / 425.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004946/0.2454, allocations: 343.7 kB / 425.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.247, allocations: 2.88 MB / 428.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.2486, allocations: 1.946 MB / 430.7 MB, free: 6.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000708/0.2493, allocations: 0.914 MB / 431.6 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009608/0.2503, allocations: 1.245 MB / 432.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.2505, allocations: 132 kB / 433 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004532/0.2509, allocations: 247.8 kB / 433.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004561/0.2514, allocations: 0.6812 MB / 433.9 MB, free: 3.762 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007299/0.2521, allocations: 1.195 MB / 435.1 MB, free: 2.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002288/0.2544, allocations: 3.881 MB / 439 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2544, allocations: 0 / 439 MB, free: 14.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2545, allocations: 0 / 439 MB, free: 14.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.2545, allocations: 0 / 439 MB, free: 14.66 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004032/0.2585, allocations: 2.484 MB / 441.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.2586, allocations: 8.031 kB / 441.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006477/0.2592, allocations: 301.6 kB / 441.8 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002115/0.2614, allocations: 1.488 MB / 443.3 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.2615, allocations: 168.5 kB / 443.4 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002851/0.2618, allocations: 211.9 kB / 443.6 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004223/0.266, allocations: 2.796 MB / 446.4 MB, free: 7.004 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.239e-05/0.2661, allocations: 4 kB / 446.4 MB, free: 7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.2663, allocations: 88 kB / 446.5 MB, free: 6.914 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.2664, allocations: 104.2 kB / 446.6 MB, free: 6.809 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003723/0.2701, allocations: 2.355 MB / 449 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.2817, allocations: 8.651 MB / 457.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.284, allocations: 1.706 MB / 459.3 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.2856, allocations: 0.9879 MB / 460.3 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000257/0.2859, allocations: 203.2 kB / 460.5 MB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.2859, allocations: 47.5 kB / 460.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.146e-06/0.2859, allocations: 0 / 460.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.01219/0.2981, allocations: 6.34 MB / 466.9 MB, free: 1.922 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.2982, allocations: 64.41 kB / 467 MB, free: 1.844 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/0.3001, allocations: 1.426 MB / 468.4 MB, free: 416 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/0.3002, allocations: 45.7 kB / 468.5 MB, free: 364 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006792/0.3009, allocations: 1.049 MB / 469.5 MB, free: 15.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002848/0.3011, allocations: 398.2 kB / 469.9 MB, free: 14.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7e-05/0.3012, allocations: 32 kB / 469.9 MB, free: 14.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3014, allocations: 361.9 kB / 470.3 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.3025, allocations: 0.6988 MB / 471 MB, free: 13.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.3038, allocations: 1.073 MB / 472 MB, free: 12.58 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.3063, allocations: 1.879 MB / 473.9 MB, free: 10.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.3063, allocations: 4 kB / 473.9 MB, free: 10.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003721/0.31, allocations: 2.433 MB / 476.4 MB, free: 8.062 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.31, allocations: 11.98 kB / 476.4 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.3101, allocations: 12 kB / 476.4 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009104/0.311, allocations: 419 kB / 476.8 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.3122, allocations: 331.5 kB / 477.1 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00601/0.3182, allocations: 6.46 MB / 483.6 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.3193, allocations: 108 kB / 483.7 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.3194, allocations: 59.92 kB / 483.7 MB, free: 264 kB / 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 (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.3205, allocations: 0.6886 MB / 484.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/0.3207, allocations: 158 kB / 484.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003495/0.3242, allocations: 2.15 MB / 486.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3243, allocations: 12 kB / 486.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3243, allocations: 4 kB / 486.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.3243, allocations: 11.91 kB / 486.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006924/0.3312, allocations: 4.599 MB / 491.4 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3313, allocations: 4 kB / 491.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009123/0.3322, allocations: 223.5 kB / 491.6 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.3333, allocations: 447.1 kB / 492 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.132e-05/0.3334, allocations: 35.98 kB / 492.1 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007147/0.3405, allocations: 7.929 MB / 500 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3405, allocations: 4 kB / 500 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004629/0.3452, allocations: 3.121 MB / 0.4913 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007281/0.3459, allocations: 390.9 kB / 0.4917 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.3461, allocations: 28 kB / 0.4917 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008072/0.3469, allocations: 95.89 kB / 0.4918 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3472, allocations: 100.7 kB / 0.4919 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/0.3473, allocations: 32 kB / 0.4919 GB, free: 11.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001377/0.3486, allocations: 0.9771 MB / 0.4929 GB, free: 10.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3486, allocations: 0 / 0.4929 GB, free: 10.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001402/0.3501, allocations: 468.1 kB / 0.4933 GB, free: 9.98 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,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.0003363/0.3504, allocations: 198.9 kB / 0.4935 GB, free: 9.777 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003423/0.3538, allocations: 2.231 MB / 0.4957 GB, free: 7.484 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.3538, allocations: 3.984 kB / 0.4957 GB, free: 7.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002172/0.356, allocations: 1.447 MB / 0.4971 GB, free: 5.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/0.3583, allocations: 396.9 kB / 0.4975 GB, free: 5.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1561/0.5144, allocations: 5.541 MB / 0.5029 GB, free: 89.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002117/0.5166, allocations: 1.804 MB / 0.5047 GB, free: 88.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001314/0.5179, allocations: 371.5 kB / 0.505 GB, free: 88.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/0.5182, allocations: 113.2 kB / 0.5051 GB, free: 88.38 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5182, allocations: 0 / 0.5051 GB, free: 88.38 MB / 378.7 MB Notification: Performance of Templates: time 0.03332/0.5515, allocations: 23.11 MB / 0.5277 GB, free: 74.12 MB / 378.7 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