Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 207.4 kB / 8.542 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.167/1.167, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009086/0.0009086, allocations: 96.14 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.621e-06, allocations: 0 / 343.1 MB, free: 8.773 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08205/0.08207, allocations: 51.48 MB / 394.6 MB, free: 5.238 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2475/0.3296, allocations: 109.1 MB / 0.4919 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.3299, allocations: 80.94 kB / 0.492 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1319/0.4618, allocations: 49.37 MB / 0.5402 GB, free: 4.262 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002046/0.4621, allocations: 63.94 kB / 0.5402 GB, free: 4.199 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005713/0.4678, allocations: 2.361 MB / 0.5425 GB, free: 1.781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.311e-05/0.4679, allocations: 8.031 kB / 0.5426 GB, free: 1.773 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001559/0.4695, allocations: 328.5 kB / 0.5429 GB, free: 1.449 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00403/0.4735, allocations: 1.703 MB / 0.5445 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.4736, allocations: 72 kB / 0.5446 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00061/0.4742, allocations: 139.9 kB / 0.5447 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004583/0.4788, allocations: 2.114 MB / 0.5468 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005076/0.4839, allocations: 2.531 MB / 0.5493 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.99e-05/0.484, allocations: 7.906 kB / 0.5493 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002662/0.4843, allocations: 4 kB / 0.5493 GB, free: 10.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.4844, allocations: 104.3 kB / 0.5494 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01523/0.4997, allocations: 8.747 MB / 0.5579 GB, free: 1.574 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.5012, allocations: 0.8532 MB / 0.5588 GB, free: 0.707 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.5025, allocations: 0.8579 MB / 0.5596 GB, free: 15.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003382/0.5029, allocations: 215.1 kB / 0.5598 GB, free: 15.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.5029, allocations: 51.56 kB / 0.5599 GB, free: 15.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.116e-06/0.503, allocations: 0 / 0.5599 GB, free: 15.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01006/0.513, allocations: 4.989 MB / 0.5647 GB, free: 10.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.5131, allocations: 68.7 kB / 0.5648 GB, free: 10.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.5151, allocations: 1.117 MB / 0.5659 GB, free: 9.312 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.5152, allocations: 25.7 kB / 0.5659 GB, free: 9.281 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005311/0.5157, allocations: 0.8803 MB / 0.5668 GB, free: 8.387 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.5161, allocations: 457.3 kB / 0.5672 GB, free: 7.934 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.94e-05/0.5162, allocations: 0 / 0.5672 GB, free: 7.934 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.5163, allocations: 369.8 kB / 0.5676 GB, free: 7.566 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.5174, allocations: 0.7224 MB / 0.5683 GB, free: 6.844 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.5187, allocations: 1.121 MB / 0.5694 GB, free: 5.551 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.5201, allocations: 0.9197 MB / 0.5702 GB, free: 4.633 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.5201, allocations: 4 kB / 0.5703 GB, free: 4.629 MB / 442.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.004313/0.5244, allocations: 2.482 MB / 0.5727 GB, free: 2.125 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.5245, allocations: 4 kB / 0.5727 GB, free: 2.121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.5245, allocations: 12 kB / 0.5727 GB, free: 2.109 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.5261, allocations: 0.5893 MB / 0.5733 GB, free: 1.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.5275, allocations: 359.4 kB / 0.5736 GB, free: 1.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1252/0.6528, allocations: 6.091 MB / 0.5796 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/0.6543, allocations: 68.56 kB / 0.5796 GB, free: 139.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.6544, allocations: 65.41 kB / 0.5797 GB, free: 139.3 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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.0002526/0.6547, allocations: 152 kB / 0.5798 GB, free: 139.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.655, allocations: 162.9 kB / 0.58 GB, free: 139.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003445/0.6584, allocations: 2.267 MB / 0.5822 GB, free: 139.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.128e-06/0.6584, allocations: 14.66 kB / 0.5822 GB, free: 139.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.6584, allocations: 7.188 kB / 0.5822 GB, free: 139.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.6585, allocations: 7.828 kB / 0.5822 GB, free: 139.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006535/0.665, allocations: 4.558 MB / 0.5867 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.665, allocations: 3.969 kB / 0.5867 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009473/0.666, allocations: 222.7 kB / 0.5869 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001558/0.6676, allocations: 0.6334 MB / 0.5875 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-05/0.6677, allocations: 19.95 kB / 0.5875 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007281/0.675, allocations: 7.704 MB / 0.5951 GB, free: 135 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.675, allocations: 6.938 kB / 0.5951 GB, free: 135 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004758/0.6798, allocations: 3.563 MB / 0.5985 GB, free: 134.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008642/0.6807, allocations: 404.4 kB / 0.5989 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.681, allocations: 12.94 kB / 0.5989 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009673/0.682, allocations: 65.55 kB / 0.599 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.6821, allocations: 81.27 kB / 0.5991 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.959e-05/0.6822, allocations: 38.23 kB / 0.5991 GB, free: 134.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001105/0.6833, allocations: 0.8354 MB / 0.5999 GB, free: 134 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001628/0.685, allocations: 483 kB / 0.6004 GB, free: 134 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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.0005246/0.6855, allocations: 346 kB / 0.6007 GB, free: 133.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003066/0.6886, allocations: 2.221 MB / 0.6029 GB, free: 133.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6886, allocations: 5.812 kB / 0.6029 GB, free: 133.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00207/0.6907, allocations: 1.388 MB / 0.6043 GB, free: 133.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/0.6924, allocations: 344.4 kB / 0.6046 GB, free: 133.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006745/0.6991, allocations: 3.873 MB / 0.6084 GB, free: 132.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/0.7008, allocations: 2.021 MB / 0.6103 GB, free: 131.6 MB / 442.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7008, allocations: 4 kB / 0.6103 GB, free: 131.6 MB / 442.7 MB Notification: Performance of Templates: time 0.03918/0.74, allocations: 24.68 MB / 0.6344 GB, free: 130.2 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches