Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001484/0.001484, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 245.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007555/0.0007555, allocations: 102.6 kB / 297.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000215/0.0002151, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1831, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2576/0.4408, allocations: 109.9 MB / 0.5064 GB, free: 97.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.4411, allocations: 91.3 kB / 0.5065 GB, free: 97.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1146/0.5557, allocations: 50.15 MB / 0.5555 GB, free: 57.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5557, allocations: 0 / 0.5555 GB, free: 57.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.5559, allocations: 63.94 kB / 0.5555 GB, free: 57.11 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.00485/0.5607, allocations: 2.613 MB / 0.5581 GB, free: 54.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.5608, allocations: 12.03 kB / 0.5581 GB, free: 54.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008017/0.5616, allocations: 329.4 kB / 0.5584 GB, free: 54.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00266/0.5642, allocations: 1.754 MB / 0.5601 GB, free: 52.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.34e-05/0.5643, allocations: 172.8 kB / 0.5603 GB, free: 52.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002706/0.5646, allocations: 224.3 kB / 0.5605 GB, free: 51.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003882/0.5685, allocations: 2.915 MB / 0.5634 GB, free: 48.83 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.532e-05/0.5686, allocations: 192 / 0.5634 GB, free: 48.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/0.5688, allocations: 99.94 kB / 0.5635 GB, free: 48.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.74e-05/0.5689, allocations: 108.3 kB / 0.5636 GB, free: 48.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003455/0.5723, allocations: 2.32 MB / 0.5658 GB, free: 46.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.5833, allocations: 9.144 MB / 0.5748 GB, free: 36.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001999/0.5853, allocations: 1.772 MB / 0.5765 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.5867, allocations: 0.8504 MB / 0.5773 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.587, allocations: 219.2 kB / 0.5775 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.587, allocations: 47.56 kB / 0.5776 GB, free: 33.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 2.816e-06/0.587, allocations: 0 / 0.5776 GB, free: 33.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01432/0.6014, allocations: 7.602 MB / 0.585 GB, free: 26.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.459e-05/0.6014, allocations: 64.72 kB / 0.5851 GB, free: 26.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/0.6031, allocations: 1.53 MB / 0.5865 GB, free: 24.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.897e-05/0.6032, allocations: 45.7 kB / 0.5866 GB, free: 24.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000473/0.6037, allocations: 1.107 MB / 0.5877 GB, free: 23.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.6039, allocations: 465.4 kB / 0.5881 GB, free: 22.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.269e-05/0.604, allocations: 28 kB / 0.5881 GB, free: 22.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.666e-05/0.6041, allocations: 377.8 kB / 0.5885 GB, free: 22.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.6052, allocations: 0.7691 MB / 0.5893 GB, free: 21.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.6065, allocations: 1.187 MB / 0.5904 GB, free: 20.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00242/0.6089, allocations: 2.092 MB / 0.5925 GB, free: 18.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.6089, allocations: 4 kB / 0.5925 GB, free: 18.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003912/0.6128, allocations: 2.711 MB / 0.5951 GB, free: 15.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.6129, allocations: 8 kB / 0.5951 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.6129, allocations: 16 kB / 0.5951 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.6141, allocations: 0.5965 MB / 0.5957 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.6153, allocations: 359.4 kB / 0.5961 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006395/0.6217, allocations: 6.702 MB / 0.6026 GB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.623, allocations: 115.9 kB / 0.6027 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.6231, allocations: 71.98 kB / 0.6028 GB, free: 7.168 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 (170): * Single equations (assignments): 167 * 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.001135/0.6242, allocations: 0.7236 MB / 0.6035 GB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/0.6245, allocations: 173.8 kB / 0.6037 GB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/0.6282, allocations: 2.442 MB / 0.606 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.6282, allocations: 12 kB / 0.606 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6282, allocations: 4 kB / 0.6061 GB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.6282, allocations: 7.969 kB / 0.6061 GB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007816/0.6361, allocations: 5.042 MB / 0.611 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.6361, allocations: 4 kB / 0.611 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009258/0.637, allocations: 223.7 kB / 0.6112 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/0.6387, allocations: 0.6389 MB / 0.6118 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.6388, allocations: 35.98 kB / 0.6119 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009654/0.6485, allocations: 8.419 MB / 0.6201 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6486, allocations: 0 / 0.6201 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005921/0.6545, allocations: 3.531 MB / 0.6235 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.6554, allocations: 418.6 kB / 0.6239 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/0.6557, allocations: 31.98 kB / 0.624 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/0.6566, allocations: 103.9 kB / 0.6241 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/0.6569, allocations: 108.7 kB / 0.6242 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.64e-05/0.657, allocations: 40.19 kB / 0.6242 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001578/0.6586, allocations: 1.043 MB / 0.6252 GB, free: 15.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6586, allocations: 0 / 0.6252 GB, free: 15.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001751/0.6604, allocations: 0.5507 MB / 0.6258 GB, free: 15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (104): * Single equations (assignments): 101 * 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%) 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.0005683/0.6609, allocations: 361.6 kB / 0.6261 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004092/0.6651, allocations: 2.439 MB / 0.6285 GB, free: 12.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.6651, allocations: 0 / 0.6285 GB, free: 12.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002624/0.6677, allocations: 1.56 MB / 0.63 GB, free: 10.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/0.6705, allocations: 456.9 kB / 0.6304 GB, free: 10.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008302/0.6788, allocations: 5.747 MB / 0.6361 GB, free: 4.297 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001662/0.6805, allocations: 1.863 MB / 0.6379 GB, free: 2.402 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006209/0.6812, allocations: 131.3 kB / 0.638 GB, free: 2.273 MB / 410.7 MB Notification: Performance of SimCode: time 6.52e-07/0.6812, allocations: 0 / 0.638 GB, free: 2.273 MB / 410.7 MB Notification: Performance of Templates: time 0.2256/0.9068, allocations: 63.97 MB / 0.7005 GB, free: 115.5 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches