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") [: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.001154/0.001154, allocations: 200.1 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008558/0.0008559, allocations: 89.42 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.885e-06/7.915e-06, allocations: 4 kB / 343.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08367/0.08369, allocations: 51.48 MB / 394.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.253/0.3367, allocations: 105.7 MB / 0.4886 GB, free: 3.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.337, allocations: 84.89 kB / 0.4887 GB, free: 3.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1216/0.4586, allocations: 45.59 MB / 0.5333 GB, free: 11.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001721/0.4588, allocations: 63.86 kB / 0.5333 GB, free: 11.16 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.00532/0.4641, allocations: 2.263 MB / 0.5355 GB, free: 8.844 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.4642, allocations: 8.031 kB / 0.5355 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.4655, allocations: 308.7 kB / 0.5358 GB, free: 8.531 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/0.469, allocations: 1.604 MB / 0.5374 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.369e-05/0.4691, allocations: 68 kB / 0.5375 GB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003193/0.4694, allocations: 123.9 kB / 0.5376 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003741/0.4731, allocations: 2.047 MB / 0.5396 GB, free: 4.625 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004482/0.4776, allocations: 2.429 MB / 0.5419 GB, free: 2.059 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.747e-05/0.4777, allocations: 3.906 kB / 0.5419 GB, free: 2.055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002042/0.478, allocations: 7.938 kB / 0.542 GB, free: 2.047 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.4781, allocations: 100.2 kB / 0.5421 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/0.4936, allocations: 8.252 MB / 0.5501 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.4955, allocations: 0.8409 MB / 0.5509 GB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.4969, allocations: 0.8391 MB / 0.5517 GB, free: 7.773 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003647/0.4972, allocations: 215.1 kB / 0.552 GB, free: 7.523 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.4973, allocations: 48.92 kB / 0.552 GB, free: 7.469 MB / 426.7 MB Notification: Performance of pre-optimization done (n=106): time 3.727e-06/0.4973, allocations: 0 / 0.552 GB, free: 7.469 MB / 426.7 MB Notification: Performance of matching and sorting (n=128): time 0.01015/0.5075, allocations: 4.823 MB / 0.5567 GB, free: 2.594 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.5076, allocations: 64.72 kB / 0.5568 GB, free: 2.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002095/0.5097, allocations: 1.033 MB / 0.5578 GB, free: 1.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.5098, allocations: 25.7 kB / 0.5578 GB, free: 1.449 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005832/0.5104, allocations: 0.8333 MB / 0.5586 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004353/0.5109, allocations: 429.5 kB / 0.559 GB, free: 180 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.967e-05/0.511, allocations: 0 / 0.559 GB, free: 180 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.5111, allocations: 365.9 kB / 0.5594 GB, free: 15.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.5122, allocations: 0.6951 MB / 0.5601 GB, free: 15.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.5134, allocations: 1.06 MB / 0.5611 GB, free: 13.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.5147, allocations: 0.8884 MB / 0.562 GB, free: 13.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.5148, allocations: 0 / 0.562 GB, free: 13.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004226/0.519, allocations: 2.393 MB / 0.5643 GB, free: 10.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.519, allocations: 6.188 kB / 0.5643 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.5191, allocations: 12 kB / 0.5643 GB, free: 10.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001574/0.5206, allocations: 0.5803 MB / 0.5649 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.5221, allocations: 339.5 kB / 0.5652 GB, free: 9.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007203/0.5293, allocations: 5.798 MB / 0.5709 GB, free: 3.629 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.5308, allocations: 67.83 kB / 0.5709 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.5311, allocations: 60 kB / 0.571 GB, free: 3.504 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.0004182/0.5316, allocations: 144.5 kB / 0.5711 GB, free: 3.355 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000428/0.532, allocations: 146.1 kB / 0.5713 GB, free: 3.211 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004225/0.5362, allocations: 2.215 MB / 0.5734 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.5363, allocations: 12 kB / 0.5734 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/0.5363, allocations: 11.94 kB / 0.5735 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.5363, allocations: 11.97 kB / 0.5735 GB, free: 0.9375 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1652/0.7015, allocations: 4.366 MB / 0.5777 GB, free: 78.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.7015, allocations: 3.688 kB / 0.5777 GB, free: 78.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009395/0.7025, allocations: 212.1 kB / 0.5779 GB, free: 78.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.7041, allocations: 0.6241 MB / 0.5785 GB, free: 78.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-05/0.7042, allocations: 22.33 kB / 0.5786 GB, free: 78.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007004/0.7112, allocations: 7.422 MB / 0.5858 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.7113, allocations: 3.562 kB / 0.5858 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004432/0.7157, allocations: 3.412 MB / 0.5891 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007745/0.7165, allocations: 387.5 kB / 0.5895 GB, free: 74.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002991/0.7168, allocations: 19.45 kB / 0.5895 GB, free: 74.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009/0.7177, allocations: 61.45 kB / 0.5896 GB, free: 74.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.7179, allocations: 71.47 kB / 0.5897 GB, free: 74.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.246e-05/0.718, allocations: 41.59 kB / 0.5897 GB, free: 74.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001053/0.7191, allocations: 0.7821 MB / 0.5905 GB, free: 74.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00157/0.7207, allocations: 448.6 kB / 0.5909 GB, free: 74.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.0005005/0.7212, allocations: 293.6 kB / 0.5912 GB, free: 73.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00303/0.7242, allocations: 2.159 MB / 0.5933 GB, free: 73.66 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7242, allocations: 0 / 0.5933 GB, free: 73.66 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00199/0.7262, allocations: 1.359 MB / 0.5946 GB, free: 73.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.7278, allocations: 300.9 kB / 0.5949 GB, free: 73.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006506/0.7344, allocations: 3.701 MB / 0.5985 GB, free: 72.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/0.7362, allocations: 1.951 MB / 0.6004 GB, free: 71.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.723e-06/0.7362, allocations: 0 / 0.6004 GB, free: 71.79 MB / 442.7 MB Notification: Performance of Templates: time 0.03874/0.775, allocations: 22.78 MB / 0.6227 GB, free: 70.48 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