Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007534/0.0007535, allocations: 87.97 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.286e-05/1.289e-05, allocations: 0 / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09845, allocations: 51.48 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3541/0.4526, allocations: 105.8 MB / 0.4893 GB, free: 3.699 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003841/0.4531, allocations: 83.27 kB / 0.4893 GB, free: 3.656 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1331/0.5862, allocations: 45.85 MB / 0.5341 GB, free: 10.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5862, allocations: 0 / 0.5341 GB, free: 10.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000178/0.5864, allocations: 63.88 kB / 0.5342 GB, free: 10.56 MB / 410.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.00514/0.5916, allocations: 2.267 MB / 0.5364 GB, free: 8.234 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.5916, allocations: 12.03 kB / 0.5364 GB, free: 8.223 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.5928, allocations: 304.7 kB / 0.5367 GB, free: 7.922 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003354/0.5961, allocations: 1.588 MB / 0.5382 GB, free: 6.273 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.069e-05/0.5962, allocations: 72 kB / 0.5383 GB, free: 6.203 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000424/0.5967, allocations: 124.7 kB / 0.5384 GB, free: 6.082 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004059/0.6008, allocations: 2.008 MB / 0.5404 GB, free: 4.066 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004228/0.605, allocations: 2.394 MB / 0.5427 GB, free: 1.535 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.168e-05/0.6051, allocations: 19.81 kB / 0.5427 GB, free: 1.516 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/0.6052, allocations: 4 kB / 0.5427 GB, free: 1.512 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.942e-05/0.6054, allocations: 100.2 kB / 0.5428 GB, free: 1.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.6179, allocations: 8.207 MB / 0.5508 GB, free: 8.977 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.62, allocations: 1.652 MB / 0.5525 GB, free: 7.207 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.621, allocations: 0.7584 MB / 0.5532 GB, free: 6.449 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003438/0.6214, allocations: 219.5 kB / 0.5534 GB, free: 6.195 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.6214, allocations: 43.88 kB / 0.5535 GB, free: 6.145 MB / 426.7 MB Notification: Performance of pre-optimization done (n=106): time 2.795e-06/0.6214, allocations: 0 / 0.5535 GB, free: 6.145 MB / 426.7 MB Notification: Performance of matching and sorting (n=128): time 0.008537/0.63, allocations: 4.783 MB / 0.5581 GB, free: 1.312 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.63, allocations: 68.72 kB / 0.5582 GB, free: 1.234 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.6314, allocations: 1.033 MB / 0.5592 GB, free: 200 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.728e-05/0.6315, allocations: 25.7 kB / 0.5592 GB, free: 168 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006281/0.6321, allocations: 1.032 MB / 0.5602 GB, free: 15.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003008/0.6324, allocations: 425.6 kB / 0.5606 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-05/0.6325, allocations: 0 / 0.5606 GB, free: 14.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.6326, allocations: 365.9 kB / 0.561 GB, free: 14.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008763/0.6335, allocations: 0.6755 MB / 0.5616 GB, free: 13.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.6346, allocations: 1.033 MB / 0.5627 GB, free: 12.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.6357, allocations: 0.8494 MB / 0.5635 GB, free: 11.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.6357, allocations: 4 kB / 0.5635 GB, free: 11.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003689/0.6394, allocations: 2.357 MB / 0.5658 GB, free: 9.238 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.6395, allocations: 8 kB / 0.5658 GB, free: 9.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.6395, allocations: 12 kB / 0.5658 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.6409, allocations: 0.5804 MB / 0.5664 GB, free: 8.629 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.6421, allocations: 347.5 kB / 0.5667 GB, free: 8.289 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006811/0.649, allocations: 6.068 MB / 0.5726 GB, free: 1.988 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.6502, allocations: 87.88 kB / 0.5727 GB, free: 1.902 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.6503, allocations: 63.98 kB / 0.5728 GB, free: 1.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 2 * 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: 2 {(6,75.0%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000253/0.6506, allocations: 140.5 kB / 0.5729 GB, free: 1.695 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.6508, allocations: 146.1 kB / 0.5731 GB, free: 1.551 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2147/0.8655, allocations: 2.175 MB / 0.5752 GB, free: 93.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/0.8656, allocations: 16.84 kB / 0.5752 GB, free: 93.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.8656, allocations: 6.219 kB / 0.5752 GB, free: 93.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.971e-05/0.8656, allocations: 3.469 kB / 0.5752 GB, free: 93.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006878/0.8725, allocations: 4.365 MB / 0.5795 GB, free: 93.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.8725, allocations: 6.344 kB / 0.5795 GB, free: 93.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008586/0.8734, allocations: 218 kB / 0.5797 GB, free: 93.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.8749, allocations: 0.6332 MB / 0.5803 GB, free: 93.32 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.051e-05/0.875, allocations: 16.58 kB / 0.5803 GB, free: 93.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006815/0.8819, allocations: 7.742 MB / 0.5879 GB, free: 89.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.8819, allocations: 3.344 kB / 0.5879 GB, free: 89.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004129/0.886, allocations: 3.329 MB / 0.5911 GB, free: 89.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/0.8868, allocations: 387.2 kB / 0.5915 GB, free: 89.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.887, allocations: 12.16 kB / 0.5915 GB, free: 89.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008327/0.8879, allocations: 75.33 kB / 0.5916 GB, free: 89.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.8881, allocations: 107.4 kB / 0.5917 GB, free: 89.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.293e-05/0.8882, allocations: 42.5 kB / 0.5917 GB, free: 89.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009937/0.8892, allocations: 0.7698 MB / 0.5925 GB, free: 89.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8892, allocations: 0 / 0.5925 GB, free: 89.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001682/0.8909, allocations: 462.6 kB / 0.5929 GB, free: 89.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 97 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005436/0.8914, allocations: 285.4 kB / 0.5932 GB, free: 88.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.8944, allocations: 2.182 MB / 0.5953 GB, free: 88.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.8944, allocations: 3.062 kB / 0.5953 GB, free: 88.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.8963, allocations: 1.422 MB / 0.5967 GB, free: 88.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.898, allocations: 304.2 kB / 0.597 GB, free: 88.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006279/0.9043, allocations: 3.633 MB / 0.6005 GB, free: 87.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001259/0.9056, allocations: 1.868 MB / 0.6024 GB, free: 86.63 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001295/0.9069, allocations: 351.9 kB / 0.6027 GB, free: 86.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.9072, allocations: 105.9 kB / 0.6028 GB, free: 86.59 MB / 442.7 MB Notification: Performance of SimCode: time 5.91e-07/0.9072, allocations: 0 / 0.6028 GB, free: 86.59 MB / 442.7 MB Notification: Performance of Templates: time 0.03779/0.945, allocations: 21.96 MB / 0.6243 GB, free: 85.5 MB / 442.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