Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [: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 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 181.8 kB / 8.135 MB, free: 2.078 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008872/0.0008872, allocations: 91.64 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.65e-06/5.67e-06, allocations: 0 / 336.5 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1819, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.2901, allocations: 109.4 MB / 496.4 MB, free: 9.297 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.2904, allocations: 88.8 kB / 496.4 MB, free: 9.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2596/0.55, allocations: 52.21 MB / 0.5358 GB, free: 74.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001858/0.5503, allocations: 79.81 kB / 0.5359 GB, free: 74.23 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005269/0.5555, allocations: 2.57 MB / 0.5384 GB, free: 71.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.5556, allocations: 8.031 kB / 0.5384 GB, free: 71.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.5567, allocations: 360 kB / 0.5387 GB, free: 71.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003852/0.5605, allocations: 1.926 MB / 0.5406 GB, free: 69.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.315e-05/0.5607, allocations: 84 kB / 0.5407 GB, free: 69.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000438/0.5611, allocations: 155.8 kB / 0.5408 GB, free: 69.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003984/0.5651, allocations: 2.384 MB / 0.5432 GB, free: 66.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004168/0.5693, allocations: 2.864 MB / 0.546 GB, free: 63.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.159e-05/0.5694, allocations: 11.89 kB / 0.546 GB, free: 63.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002177/0.5696, allocations: 8 kB / 0.546 GB, free: 63.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.242e-05/0.5697, allocations: 116.9 kB / 0.5461 GB, free: 63.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0133/0.583, allocations: 9.987 MB / 0.5558 GB, free: 53.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.5841, allocations: 0.904 MB / 0.5567 GB, free: 52.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009629/0.5851, allocations: 0.7924 MB / 0.5575 GB, free: 51.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002914/0.5854, allocations: 215.1 kB / 0.5577 GB, free: 51.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.5854, allocations: 44.22 kB / 0.5577 GB, free: 51.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 2.525e-06/0.5855, allocations: 0 / 0.5577 GB, free: 51.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=138): time 0.008827/0.5943, allocations: 5.207 MB / 0.5628 GB, free: 46.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/0.5943, allocations: 64.72 kB / 0.5629 GB, free: 45.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.5959, allocations: 1.312 MB / 0.5642 GB, free: 44.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/0.596, allocations: 25.7 kB / 0.5642 GB, free: 44.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/0.5964, allocations: 1.009 MB / 0.5652 GB, free: 43.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002507/0.5966, allocations: 465.2 kB / 0.5656 GB, free: 43.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.068e-05/0.5967, allocations: 0 / 0.5656 GB, free: 43.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.5968, allocations: 369.8 kB / 0.566 GB, free: 42.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009228/0.5977, allocations: 0.7888 MB / 0.5668 GB, free: 41.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.5988, allocations: 1.279 MB / 0.568 GB, free: 40.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.6001, allocations: 1.009 MB / 0.569 GB, free: 39.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.6001, allocations: 4 kB / 0.569 GB, free: 39.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003227/0.6033, allocations: 2.39 MB / 0.5713 GB, free: 37.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.6033, allocations: 4 kB / 0.5713 GB, free: 37.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.6034, allocations: 19.98 kB / 0.5713 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000553/0.6039, allocations: 231.3 kB / 0.5716 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/0.6056, allocations: 439.3 kB / 0.572 GB, free: 36.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.6074, allocations: 2.836 MB / 0.5748 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.6087, allocations: 71.78 kB / 0.5748 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.6089, allocations: 80.05 kB / 0.5749 GB, free: 33.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002447/0.6091, allocations: 156.4 kB / 0.5751 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002859/0.6094, allocations: 173.8 kB / 0.5752 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003072/0.6125, allocations: 2.09 MB / 0.5773 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.6125, allocations: 16 kB / 0.5773 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.6125, allocations: 4 kB / 0.5773 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.6126, allocations: 7.969 kB / 0.5773 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006548/0.6191, allocations: 4.539 MB / 0.5817 GB, free: 26.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.6191, allocations: 4 kB / 0.5817 GB, free: 26.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.6204, allocations: 283.6 kB / 0.582 GB, free: 25.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004976/0.6209, allocations: 199.6 kB / 0.5822 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.072e-05/0.621, allocations: 11.98 kB / 0.5822 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.6227, allocations: 2.82 MB / 0.5849 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.6227, allocations: 4 kB / 0.585 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003692/0.6264, allocations: 3.447 MB / 0.5883 GB, free: 18.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007406/0.6272, allocations: 430.8 kB / 0.5887 GB, free: 18.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003145/0.6275, allocations: 0 / 0.5887 GB, free: 18.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009746/0.6285, allocations: 59.98 kB / 0.5888 GB, free: 18.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.6286, allocations: 73.11 kB / 0.5889 GB, free: 18.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-05/0.6287, allocations: 39.98 kB / 0.5889 GB, free: 18.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001285/0.63, allocations: 0.9735 MB / 0.5898 GB, free: 17.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001425/0.6315, allocations: 463.9 kB / 0.5903 GB, free: 16.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005114/0.632, allocations: 392.9 kB / 0.5907 GB, free: 16.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.6347, allocations: 2.337 MB / 0.5929 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6347, allocations: 0 / 0.5929 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.6362, allocations: 1.352 MB / 0.5943 GB, free: 12.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.6377, allocations: 361.2 kB / 0.5946 GB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006391/0.6441, allocations: 3.966 MB / 0.5985 GB, free: 8.348 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001961/0.6461, allocations: 2.224 MB / 0.6007 GB, free: 6.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.4e-07/0.6461, allocations: 4 kB / 0.6007 GB, free: 6.086 MB / 378.7 MB Notification: Performance of Templates: time 0.03915/0.6853, allocations: 23.74 MB / 0.6238 GB, free: 14.55 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches