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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 186.5 kB / 17.27 MB, free: 4.496 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.677/1.677, allocations: 222.9 MB / 240.9 MB, free: 10.96 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.001082/0.001082, allocations: 100.2 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007605/0.0007606, allocations: 39.94 kB / 350 MB, free: 48 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2011, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007208/0.2084, allocations: 9.551 MB / 409 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003779/0.2122, allocations: 3.058 MB / 412.1 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006422/0.2128, allocations: 55.75 kB / 412.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.2139, allocations: 0.5902 MB / 412.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.2152, allocations: 0.6954 MB / 413.4 MB, free: 19.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004847/0.2157, allocations: 339.7 kB / 413.8 MB, free: 19.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001606/0.2173, allocations: 2.897 MB / 416.7 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.2189, allocations: 1.969 MB / 418.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008229/0.2197, allocations: 1.043 MB / 419.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.2209, allocations: 1.44 MB / 421.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002497/0.2211, allocations: 196 kB / 421.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.2216, allocations: 307.8 kB / 421.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004879/0.2221, allocations: 0.7788 MB / 422.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008378/0.223, allocations: 1.29 MB / 423.7 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002112/0.2251, allocations: 3.999 MB / 427.7 MB, free: 5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.2251, allocations: 0 / 427.7 MB, free: 5 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2251, allocations: 0 / 427.7 MB, free: 5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.783e-05/0.2252, allocations: 0 / 427.7 MB, free: 5 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.004555/0.2298, allocations: 2.908 MB / 430.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2298, allocations: 12.03 kB / 430.6 MB, free: 2.016 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005447/0.2304, allocations: 289.6 kB / 430.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.2324, allocations: 1.488 MB / 432.4 MB, free: 188 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.2326, allocations: 172.5 kB / 432.5 MB, free: 12 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003154/0.2329, allocations: 216 kB / 432.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004122/0.237, allocations: 2.792 MB / 435.5 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.65e-05/0.2371, allocations: 11.98 kB / 435.5 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/0.2373, allocations: 87.98 kB / 435.6 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.2374, allocations: 104.1 kB / 435.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003654/0.2411, allocations: 2.351 MB / 438.1 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01207/0.2531, allocations: 8.596 MB / 446.7 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00232/0.2555, allocations: 1.707 MB / 448.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.2571, allocations: 0.9673 MB / 449.4 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002725/0.2574, allocations: 207.2 kB / 449.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.2575, allocations: 47.5 kB / 449.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.627e-06/0.2575, allocations: 0 / 449.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.0128/0.2703, allocations: 6.225 MB / 455.8 MB, free: 8.023 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.2704, allocations: 64.41 kB / 455.9 MB, free: 7.945 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.2722, allocations: 1.437 MB / 457.3 MB, free: 6.496 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.944e-05/0.2723, allocations: 45.7 kB / 457.4 MB, free: 6.445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006883/0.273, allocations: 1.033 MB / 458.4 MB, free: 5.398 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.2733, allocations: 410.1 kB / 458.8 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003903/0.2737, allocations: 255.4 kB / 459.1 MB, free: 4.738 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2739, allocations: 365.9 kB / 459.4 MB, free: 4.375 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.275, allocations: 0.687 MB / 460.1 MB, free: 3.688 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.2763, allocations: 1.081 MB / 461.2 MB, free: 2.449 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00231/0.2786, allocations: 1.864 MB / 463 MB, free: 432 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2786, allocations: 4 kB / 463.1 MB, free: 428 kB / 330.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003852/0.2825, allocations: 2.409 MB / 465.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.2826, allocations: 12 kB / 465.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.2826, allocations: 15.98 kB / 465.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.2836, allocations: 425 kB / 465.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.2848, allocations: 323.5 kB / 466.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/0.2915, allocations: 6.458 MB / 472.7 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.2931, allocations: 99.84 kB / 472.8 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.2932, allocations: 63.92 kB / 472.8 MB, free: 6.172 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 (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.001033/0.2942, allocations: 0.6886 MB / 473.5 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003113/0.2946, allocations: 158.1 kB / 473.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003672/0.2982, allocations: 2.122 MB / 475.8 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.2983, allocations: 12 kB / 475.8 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.2983, allocations: 4 kB / 475.8 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.2983, allocations: 11.91 kB / 475.8 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007574/0.3059, allocations: 4.584 MB / 480.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3059, allocations: 4 kB / 480.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009124/0.3068, allocations: 219.6 kB / 480.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/0.308, allocations: 454.2 kB / 481.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.902e-05/0.3081, allocations: 31.98 kB / 481.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007259/0.3154, allocations: 7.92 MB / 489 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.3154, allocations: 4 kB / 489 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1983/0.5137, allocations: 23.64 MB / 0.5006 GB, free: 91.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006229/0.5144, allocations: 379.3 kB / 0.501 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.5146, allocations: 34.22 kB / 0.501 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008601/0.5154, allocations: 80.61 kB / 0.5011 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/0.5157, allocations: 93.38 kB / 0.5012 GB, free: 91.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.385e-05/0.5158, allocations: 36.12 kB / 0.5012 GB, free: 91.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001347/0.5172, allocations: 0.9874 MB / 0.5022 GB, free: 91.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5172, allocations: 0 / 0.5022 GB, free: 91.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002022/0.5192, allocations: 0.6365 MB / 0.5028 GB, free: 91.71 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.0004142/0.5196, allocations: 192.9 kB / 0.503 GB, free: 91.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00336/0.523, allocations: 2.215 MB / 0.5052 GB, free: 90.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.523, allocations: 0 / 0.5052 GB, free: 90.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002136/0.5252, allocations: 1.451 MB / 0.5066 GB, free: 90.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.5274, allocations: 394.9 kB / 0.507 GB, free: 90.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008613/0.536, allocations: 6.868 MB / 0.5137 GB, free: 86.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001386/0.5375, allocations: 1.866 MB / 0.5155 GB, free: 85.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00126/0.5387, allocations: 379.8 kB / 0.5159 GB, free: 85.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.5391, allocations: 117.6 kB / 0.516 GB, free: 84.92 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5391, allocations: 0 / 0.516 GB, free: 84.92 MB / 378.7 MB Notification: Performance of Templates: time 0.03856/0.5777, allocations: 28.61 MB / 0.5439 GB, free: 57.54 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../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