Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 101.9 kB / 16.62 MB, free: 6.809 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.00135/0.00135, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.358/1.358, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 46.92 kB / 300.1 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1133, allocations: 49.45 MB / 349.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01229/0.1256, allocations: 9.563 MB / 359.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00616/0.1318, allocations: 3.053 MB / 362.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.1336, allocations: 51.75 kB / 362.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001998/0.1357, allocations: 0.5981 MB / 362.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002613/0.1383, allocations: 0.6915 MB / 363.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009798/0.1393, allocations: 343.6 kB / 363.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.1422, allocations: 2.531 MB / 366.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002397/0.1446, allocations: 2.334 MB / 368.7 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.1463, allocations: 1.183 MB / 369.9 MB, free: 280 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1736/0.3199, allocations: 1.515 MB / 371.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007352/0.3207, allocations: 318.2 kB / 371.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.3217, allocations: 422.4 kB / 372.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009006/0.3227, allocations: 0.9007 MB / 373.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001533/0.3242, allocations: 1.418 MB / 374.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005355/0.3296, allocations: 4.099 MB / 378.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3296, allocations: 1.188 kB / 378.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3296, allocations: 1.188 kB / 378.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.492e-05/0.3297, allocations: 0 / 378.6 MB, free: 12.17 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.006198/0.3359, allocations: 2.908 MB / 381.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3359, allocations: 11.06 kB / 381.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008817/0.3368, allocations: 291.8 kB / 381.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.3393, allocations: 1.492 MB / 383.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.3395, allocations: 161.1 kB / 383.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003555/0.3399, allocations: 215.7 kB / 383.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004781/0.3447, allocations: 2.803 MB / 386.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.453e-05/0.3448, allocations: 6.5 kB / 386.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/0.345, allocations: 89.81 kB / 386.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/0.3451, allocations: 106 kB / 386.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003834/0.3489, allocations: 2.356 MB / 389 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/0.3605, allocations: 8.589 MB / 397.6 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.3626, allocations: 1.704 MB / 399.3 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.3641, allocations: 0.9642 MB / 400.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002951/0.3644, allocations: 203.3 kB / 400.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.3645, allocations: 46.59 kB / 400.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.577e-06/0.3645, allocations: 0 / 400.5 MB, free: 15.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01339/0.3779, allocations: 6.226 MB / 406.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.378, allocations: 63.22 kB / 406.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/0.3801, allocations: 1.445 MB / 408.2 MB, free: 8.125 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001322/0.3803, allocations: 45.7 kB / 408.3 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007233/0.381, allocations: 1.041 MB / 409.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003121/0.3813, allocations: 404.7 kB / 409.7 MB, free: 6.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.3818, allocations: 255.4 kB / 410 MB, free: 6.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3819, allocations: 357.9 kB / 410.3 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.383, allocations: 0.691 MB / 411 MB, free: 5.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.3844, allocations: 1.07 MB / 412.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/0.3869, allocations: 1.861 MB / 413.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3869, allocations: 4 kB / 413.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004193/0.3911, allocations: 2.425 MB / 416.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.3912, allocations: 8 kB / 416.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/0.3912, allocations: 12 kB / 416.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.3922, allocations: 412.7 kB / 416.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.3934, allocations: 339.8 kB / 417.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00669/0.4001, allocations: 7.055 MB / 424.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.4016, allocations: 99.8 kB / 424.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.4017, allocations: 60 kB / 424.3 MB, free: 7.406 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 (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.001282/0.403, allocations: 0.6888 MB / 425 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002839/0.4033, allocations: 158.1 kB / 425.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.407, allocations: 2.128 MB / 427.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.4071, allocations: 12 kB / 427.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4071, allocations: 4 kB / 427.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4071, allocations: 3.984 kB / 427.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00808/0.4152, allocations: 4.586 MB / 431.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.4152, allocations: 4 kB / 431.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009161/0.4161, allocations: 211.4 kB / 432.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/0.4173, allocations: 463.2 kB / 432.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.379e-05/0.4174, allocations: 31.98 kB / 432.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008053/0.4255, allocations: 8.612 MB / 441.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/0.4255, allocations: 7.984 kB / 441.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005151/0.4307, allocations: 3.098 MB / 444.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.4319, allocations: 383 kB / 444.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002425/0.4321, allocations: 31.98 kB / 444.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.4331, allocations: 83.91 kB / 444.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002903/0.4334, allocations: 94.44 kB / 444.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.152e-05/0.4335, allocations: 35.98 kB / 444.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001639/0.4351, allocations: 0.9887 MB / 445.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4352, allocations: 0 / 445.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001915/0.4371, allocations: 464 kB / 446.4 MB, free: 0.6758 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 (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.0004504/0.4375, allocations: 202.8 kB / 446.6 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005263/0.4428, allocations: 2.698 MB / 449.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.4428, allocations: 0 / 449.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/0.4452, allocations: 1.444 MB / 450.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.4475, allocations: 430.1 kB / 451.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008356/0.4559, allocations: 5.402 MB / 456.5 MB, free: 6.445 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.4574, allocations: 1.807 MB / 458.3 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00151/0.4589, allocations: 369.5 kB / 458.7 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.4593, allocations: 115.4 kB / 458.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4593, allocations: 0 / 458.8 MB, free: 4.125 MB / 366.1 MB Notification: Performance of Templates: time 0.05412/0.5134, allocations: 24.31 MB / 483.1 MB, free: 12.13 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches