Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 104.1 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008767/0.0008769, allocations: 43.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2082, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0132/0.2215, allocations: 10.23 MB / 409.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007654/0.2292, allocations: 3.389 MB / 413.1 MB, free: 19.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.2313, allocations: 55.75 kB / 413.2 MB, free: 19.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00287/0.2343, allocations: 0.672 MB / 413.8 MB, free: 18.99 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003563/0.2379, allocations: 0.7615 MB / 414.6 MB, free: 18.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.2391, allocations: 363.6 kB / 414.9 MB, free: 17.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003755/0.2429, allocations: 3.12 MB / 418.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002763/0.2457, allocations: 2.04 MB / 420.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001634/0.2473, allocations: 1.113 MB / 421.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.2495, allocations: 1.514 MB / 422.7 MB, free: 10 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000409/0.2499, allocations: 208 kB / 422.9 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006713/0.2506, allocations: 323.8 kB / 423.2 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005794/0.2512, allocations: 0.8139 MB / 424.1 MB, free: 8.664 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001386/0.2526, allocations: 1.372 MB / 425.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003978/0.2566, allocations: 4.225 MB / 429.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.2566, allocations: 0 / 429.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2566, allocations: 0 / 429.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001382/0.2568, allocations: 0 / 429.7 MB, free: 3.047 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.008615/0.2654, allocations: 3.053 MB / 432.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.2655, allocations: 8.031 kB / 432.7 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.2666, allocations: 309.4 kB / 433 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003859/0.2705, allocations: 1.575 MB / 434.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/0.2708, allocations: 180.5 kB / 434.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00047/0.2712, allocations: 227.9 kB / 435 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00746/0.2787, allocations: 2.909 MB / 437.9 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.964e-05/0.2788, allocations: 4 kB / 437.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002389/0.2791, allocations: 95.98 kB / 438 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001902/0.2793, allocations: 116.3 kB / 438.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006461/0.2858, allocations: 2.437 MB / 440.6 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02309/0.3089, allocations: 9.105 MB / 449.7 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003688/0.3126, allocations: 1.713 MB / 451.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002651/0.3153, allocations: 0.9917 MB / 452.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004429/0.3158, allocations: 203.2 kB / 452.6 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.847e-05/0.3159, allocations: 39.56 kB / 452.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 5.34e-06/0.3159, allocations: 4 kB / 452.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.02178/0.3377, allocations: 6.556 MB / 459.2 MB, free: 4.695 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.3378, allocations: 68.39 kB / 459.2 MB, free: 4.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003984/0.3418, allocations: 1.561 MB / 460.8 MB, free: 3.047 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001556/0.342, allocations: 45.7 kB / 460.8 MB, free: 2.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.3432, allocations: 1.108 MB / 461.9 MB, free: 1.871 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005602/0.3438, allocations: 433.8 kB / 462.4 MB, free: 1.441 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006453/0.3444, allocations: 271.4 kB / 462.6 MB, free: 1.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3446, allocations: 309.1 kB / 462.9 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001814/0.3464, allocations: 0.7066 MB / 463.6 MB, free: 164 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002219/0.3486, allocations: 1.134 MB / 464.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004094/0.3527, allocations: 1.975 MB / 466.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.3528, allocations: 4 kB / 466.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.006366/0.3591, allocations: 2.518 MB / 469.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.3592, allocations: 15.94 kB / 469.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/0.3592, allocations: 16 kB / 469.3 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.3608, allocations: 428.2 kB / 469.7 MB, free: 9.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.3629, allocations: 343.5 kB / 470.1 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009723/0.3726, allocations: 6.552 MB / 476.6 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002543/0.3752, allocations: 107.8 kB / 476.7 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/0.3755, allocations: 67.98 kB / 476.8 MB, free: 2.195 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.001907/0.3775, allocations: 0.7133 MB / 477.5 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006307/0.3781, allocations: 165.9 kB / 477.7 MB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005961/0.3841, allocations: 2.202 MB / 479.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.3841, allocations: 16 kB / 479.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.99e-05/0.3842, allocations: 8 kB / 479.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.3842, allocations: 3.984 kB / 479.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01347/0.3977, allocations: 4.788 MB / 484.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.3977, allocations: 8.094 kB / 484.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001582/0.3993, allocations: 219.7 kB / 484.9 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.4013, allocations: 454.9 kB / 485.3 MB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/0.4015, allocations: 31.98 kB / 485.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/0.4138, allocations: 7.981 MB / 493.3 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.4138, allocations: 7.938 kB / 493.4 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3067/0.7205, allocations: 23.95 MB / 0.5052 GB, free: 89.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007049/0.7213, allocations: 395.9 kB / 0.5056 GB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.7215, allocations: 41.5 kB / 0.5056 GB, free: 89.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008527/0.7223, allocations: 78.7 kB / 0.5057 GB, free: 89.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.7226, allocations: 101.8 kB / 0.5058 GB, free: 89.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.032e-05/0.7227, allocations: 39.36 kB / 0.5058 GB, free: 89.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001383/0.7241, allocations: 1.07 MB / 0.5069 GB, free: 88.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7241, allocations: 0 / 0.5069 GB, free: 88.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002517/0.7266, allocations: 0.6588 MB / 0.5075 GB, free: 88.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0004582/0.7271, allocations: 200.5 kB / 0.5077 GB, free: 88.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003433/0.7305, allocations: 2.289 MB / 0.5099 GB, free: 87.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.7305, allocations: 10.53 kB / 0.5099 GB, free: 87.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002148/0.7327, allocations: 1.473 MB / 0.5114 GB, free: 86.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.7351, allocations: 449.7 kB / 0.5118 GB, free: 86.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008757/0.7439, allocations: 7.171 MB / 0.5188 GB, free: 81.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.7453, allocations: 1.922 MB / 0.5207 GB, free: 80.32 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001313/0.7466, allocations: 412.5 kB / 0.5211 GB, free: 80.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003523/0.747, allocations: 127.3 kB / 0.5212 GB, free: 79.91 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.747, allocations: 0 / 0.5212 GB, free: 79.91 MB / 378.7 MB Notification: Performance of Templates: time 0.04696/0.794, allocations: 30.57 MB / 0.551 GB, free: 50.05 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches