Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") [: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 3.2.3+maint.om/package.mo): time 0.001354/0.001354, allocations: 168.9 kB / 8.47 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.115/1.115, allocations: 205.2 MB / 214.1 MB, free: 5.426 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008947/0.0008947, allocations: 83.33 kB / 262.1 MB, free: 5.492 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.37e-06/5.4e-06, allocations: 0 / 315 MB, free: 41.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06617/0.06619, allocations: 47.58 MB / 362.6 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2342/0.3004, allocations: 112.5 MB / 475 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.3007, allocations: 82.77 kB / 475.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1512/0.4519, allocations: 57.34 MB / 0.52 GB, free: 10.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002365/0.4522, allocations: 83.88 kB / 0.52 GB, free: 10.52 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.006435/0.4586, allocations: 2.865 MB / 0.5228 GB, free: 7.586 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.4587, allocations: 12.03 kB / 0.5229 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.4602, allocations: 403.5 kB / 0.5232 GB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00459/0.4648, allocations: 2.18 MB / 0.5254 GB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.4649, allocations: 96 kB / 0.5255 GB, free: 4.848 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004593/0.4654, allocations: 167.9 kB / 0.5256 GB, free: 4.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004958/0.4703, allocations: 2.729 MB / 0.5283 GB, free: 1.949 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005236/0.4756, allocations: 3.239 MB / 0.5315 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.345e-05/0.4757, allocations: 3.906 kB / 0.5315 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.4759, allocations: 4 kB / 0.5315 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.4761, allocations: 141.5 kB / 0.5316 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01827/0.4943, allocations: 11.15 MB / 0.5425 GB, free: 2.949 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.496, allocations: 1.103 MB / 0.5436 GB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.4975, allocations: 0.9936 MB / 0.5445 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003487/0.4978, allocations: 223.4 kB / 0.5447 GB, free: 0.582 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.4979, allocations: 55.81 kB / 0.5448 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.096e-06/0.4979, allocations: 0 / 0.5448 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of matching and sorting (n=155): time 0.01061/0.5085, allocations: 5.638 MB / 0.5503 GB, free: 10.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.5086, allocations: 69.03 kB / 0.5504 GB, free: 10.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002454/0.511, allocations: 1.485 MB / 0.5518 GB, free: 9.266 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.5112, allocations: 25.7 kB / 0.5518 GB, free: 9.234 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006015/0.5118, allocations: 1.107 MB / 0.5529 GB, free: 8.109 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004461/0.5122, allocations: 0.5119 MB / 0.5534 GB, free: 7.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.614e-05/0.5123, allocations: 0 / 0.5534 GB, free: 7.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.5125, allocations: 381.9 kB / 0.5538 GB, free: 7.211 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.5137, allocations: 0.8591 MB / 0.5546 GB, free: 6.352 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001538/0.5153, allocations: 1.392 MB / 0.556 GB, free: 4.719 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.5169, allocations: 1.107 MB / 0.5571 GB, free: 3.617 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.5169, allocations: 12 kB / 0.5571 GB, free: 3.605 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004886/0.5218, allocations: 2.869 MB / 0.5599 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.5218, allocations: 4.438 kB / 0.5599 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.486e-05/0.5218, allocations: 20 kB / 0.5599 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.5233, allocations: 0.5503 MB / 0.5604 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001785/0.5251, allocations: 427.3 kB / 0.5608 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007103/0.5322, allocations: 5.707 MB / 0.5664 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001995/0.5343, allocations: 71.86 kB / 0.5665 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003903/0.5347, allocations: 84 kB / 0.5666 GB, free: 9.617 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 212 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000579/0.5353, allocations: 168.3 kB / 0.5667 GB, free: 9.445 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006711/0.536, allocations: 197.5 kB / 0.5669 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/0.5411, allocations: 2.571 MB / 0.5694 GB, free: 6.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.5411, allocations: 12 kB / 0.5694 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/0.5411, allocations: 8 kB / 0.5694 GB, free: 6.641 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.5412, allocations: 7.969 kB / 0.5695 GB, free: 6.633 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.5518, allocations: 5.328 MB / 0.5747 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.5519, allocations: 4 kB / 0.5747 GB, free: 1.199 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/0.5532, allocations: 259.6 kB / 0.5749 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/0.555, allocations: 0.581 MB / 0.5755 GB, free: 364 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.5551, allocations: 15.98 kB / 0.5755 GB, free: 348 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1334/0.6885, allocations: 7.312 MB / 0.5826 GB, free: 148.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.6886, allocations: 11 kB / 0.5826 GB, free: 148.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005037/0.6936, allocations: 4.087 MB / 0.5866 GB, free: 147.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008245/0.6945, allocations: 481.1 kB / 0.5871 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003115/0.6948, allocations: 14.64 kB / 0.5871 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.6958, allocations: 59.8 kB / 0.5872 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.696, allocations: 79.44 kB / 0.5872 GB, free: 147.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.6961, allocations: 43.84 kB / 0.5873 GB, free: 147.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001424/0.6976, allocations: 1.109 MB / 0.5884 GB, free: 147.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001619/0.6992, allocations: 0.5211 MB / 0.5889 GB, free: 147.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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 {(5,76.0%) 20,(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.0005315/0.6997, allocations: 392.6 kB / 0.5892 GB, free: 147.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003067/0.7028, allocations: 2.501 MB / 0.5917 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.7028, allocations: 2.594 kB / 0.5917 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001836/0.7047, allocations: 1.486 MB / 0.5931 GB, free: 146.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.7064, allocations: 407 kB / 0.5935 GB, free: 146.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007546/0.7139, allocations: 4.639 MB / 0.5981 GB, free: 145.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/0.716, allocations: 2.413 MB / 0.6004 GB, free: 145.1 MB / 426.7 MB Notification: Performance of SimCode: time 5.61e-07/0.716, allocations: 0 / 0.6004 GB, free: 145.1 MB / 426.7 MB Notification: Performance of Templates: time 0.04302/0.759, allocations: 28.18 MB / 0.6279 GB, free: 143.5 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches