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.001469/0.001469, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.329/1.329, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0008151/0.0008151, allocations: 90.56 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 11.94 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2408, allocations: 50.4 MB / 401.5 MB, free: 32.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.3986, allocations: 109.1 MB / 0.4986 GB, free: 3.406 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.399, allocations: 99.94 kB / 0.4987 GB, free: 3.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3231/0.7221, allocations: 50.05 MB / 0.5476 GB, free: 67.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.7222, allocations: 0 / 0.5476 GB, free: 67.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000282/0.7225, allocations: 63.94 kB / 0.5476 GB, free: 67.1 MB / 378.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.008072/0.7306, allocations: 2.64 MB / 0.5502 GB, free: 64.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.7307, allocations: 8.031 kB / 0.5502 GB, free: 64.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00176/0.7324, allocations: 313.6 kB / 0.5505 GB, free: 64.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005243/0.7377, allocations: 1.703 MB / 0.5522 GB, free: 62.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.7379, allocations: 168.4 kB / 0.5523 GB, free: 62.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000859/0.7388, allocations: 223.9 kB / 0.5526 GB, free: 61.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006903/0.7457, allocations: 2.889 MB / 0.5554 GB, free: 58.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000121/0.7459, allocations: 11.89 kB / 0.5554 GB, free: 58.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004599/0.7463, allocations: 96 kB / 0.5555 GB, free: 58.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.7465, allocations: 100.4 kB / 0.5556 GB, free: 58.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004903/0.7514, allocations: 2.324 MB / 0.5578 GB, free: 56.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01645/0.7678, allocations: 9.149 MB / 0.5668 GB, free: 46.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.7701, allocations: 1.769 MB / 0.5685 GB, free: 45.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003386/0.7705, allocations: 219.1 kB / 0.5687 GB, free: 44.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.7706, allocations: 43.56 kB / 0.5688 GB, free: 44.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 3.196e-06/0.7706, allocations: 0 / 0.5688 GB, free: 44.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.01624/0.7868, allocations: 7.638 MB / 0.5762 GB, free: 36.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.7869, allocations: 68.7 kB / 0.5763 GB, free: 36.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002361/0.7893, allocations: 1.346 MB / 0.5776 GB, free: 35.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.7894, allocations: 49.64 kB / 0.5776 GB, free: 35.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000578/0.79, allocations: 1.104 MB / 0.5787 GB, free: 34.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002866/0.7903, allocations: 461.4 kB / 0.5792 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.549e-05/0.7904, allocations: 32 kB / 0.5792 GB, free: 33.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.421e-05/0.7905, allocations: 369.9 kB / 0.5795 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.7916, allocations: 0.7769 MB / 0.5803 GB, free: 32.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/0.7928, allocations: 1.184 MB / 0.5815 GB, free: 31.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.7941, allocations: 0.9706 MB / 0.5824 GB, free: 30.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.7942, allocations: 8 kB / 0.5824 GB, free: 30.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004016/0.7982, allocations: 2.711 MB / 0.5851 GB, free: 27.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.7982, allocations: 15.95 kB / 0.5851 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.7982, allocations: 12 kB / 0.5851 GB, free: 27.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.7996, allocations: 0.5931 MB / 0.5857 GB, free: 27.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.8008, allocations: 363.5 kB / 0.586 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006928/0.8078, allocations: 6.906 MB / 0.5928 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.8095, allocations: 115.8 kB / 0.5929 GB, free: 19.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/0.8098, allocations: 68 kB / 0.5929 GB, free: 19.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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): 166 * 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,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001719/0.8115, allocations: 0.7198 MB / 0.5936 GB, free: 18.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005293/0.812, allocations: 181.8 kB / 0.5938 GB, free: 18.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/0.8162, allocations: 2.442 MB / 0.5962 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.8162, allocations: 12 kB / 0.5962 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.986e-05/0.8162, allocations: 11.95 kB / 0.5962 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.8163, allocations: 7.969 kB / 0.5962 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009199/0.8255, allocations: 4.994 MB / 0.6011 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.8255, allocations: 8.062 kB / 0.6011 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009201/0.8264, allocations: 211.7 kB / 0.6013 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001554/0.828, allocations: 0.6544 MB / 0.6019 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001156/0.8282, allocations: 35.97 kB / 0.602 GB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008056/0.8362, allocations: 8.65 MB / 0.6104 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.8363, allocations: 3.938 kB / 0.6104 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006376/0.8427, allocations: 3.664 MB / 0.614 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/0.8441, allocations: 422.7 kB / 0.6144 GB, free: 12.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005583/0.8447, allocations: 36 kB / 0.6144 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.8461, allocations: 95.89 kB / 0.6145 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.8464, allocations: 113 kB / 0.6146 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.8465, allocations: 40 kB / 0.6147 GB, free: 12.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002345/0.8489, allocations: 1.035 MB / 0.6157 GB, free: 11.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8489, allocations: 0 / 0.6157 GB, free: 11.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00257/0.8515, allocations: 0.543 MB / 0.6162 GB, free: 10.78 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (102): * Single equations (assignments): 99 * 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,75.0%) 23,(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.0007282/0.8522, allocations: 370 kB / 0.6166 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004389/0.8566, allocations: 2.441 MB / 0.619 GB, free: 7.922 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.453e-06/0.8566, allocations: 0 / 0.619 GB, free: 7.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002829/0.8595, allocations: 1.57 MB / 0.6205 GB, free: 6.316 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002577/0.862, allocations: 443.2 kB / 0.6209 GB, free: 5.887 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.8726, allocations: 5.658 MB / 0.6264 GB, free: 180 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00248/0.8752, allocations: 1.935 MB / 0.6283 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00165/0.8768, allocations: 379.1 kB / 0.6287 GB, free: 13.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005519/0.8774, allocations: 123.4 kB / 0.6288 GB, free: 13.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/0.8774, allocations: 0 / 0.6288 GB, free: 13.71 MB / 410.7 MB Notification: Performance of Templates: time 0.05746/0.9349, allocations: 29.35 MB / 0.6575 GB, free: 0.5898 MB / 426.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/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