Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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_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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009666/0.0009667, allocations: 187.6 kB / 8.137 MB, free: 2.211 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.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009974/0.0009975, allocations: 103.2 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.053e-06/7.073e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1814, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.2876, allocations: 108.3 MB / 495.2 MB, free: 10.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.2879, allocations: 91.89 kB / 495.3 MB, free: 10.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2494/0.5373, allocations: 49.26 MB / 0.5318 GB, free: 78.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001314/0.5374, allocations: 59.94 kB / 0.5318 GB, free: 78.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.003743/0.5412, allocations: 2.361 MB / 0.5341 GB, free: 75.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.5412, allocations: 8.031 kB / 0.5341 GB, free: 75.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007815/0.542, allocations: 324.5 kB / 0.5344 GB, free: 75.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/0.5448, allocations: 1.702 MB / 0.5361 GB, free: 73.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/0.5449, allocations: 72 kB / 0.5362 GB, free: 73.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.5451, allocations: 139.9 kB / 0.5363 GB, free: 73.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002918/0.5481, allocations: 2.114 MB / 0.5384 GB, free: 71.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003278/0.5513, allocations: 2.525 MB / 0.5408 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.617e-05/0.5514, allocations: 11.91 kB / 0.5408 GB, free: 68.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.5516, allocations: 4 kB / 0.5408 GB, free: 68.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.55e-05/0.5517, allocations: 104.3 kB / 0.5409 GB, free: 68.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01171/0.5634, allocations: 8.744 MB / 0.5495 GB, free: 59.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.5646, allocations: 0.8502 MB / 0.5503 GB, free: 58.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.5656, allocations: 0.8616 MB / 0.5512 GB, free: 57.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002541/0.5659, allocations: 215.2 kB / 0.5514 GB, free: 57.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.702e-05/0.5659, allocations: 55.5 kB / 0.5514 GB, free: 57.56 MB / 378.7 MB Notification: Performance of pre-optimization done (n=110): time 2.615e-06/0.5659, allocations: 0 / 0.5514 GB, free: 57.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=134): time 0.007902/0.5738, allocations: 4.979 MB / 0.5563 GB, free: 52.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.858e-05/0.5738, allocations: 72.7 kB / 0.5563 GB, free: 52.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.5751, allocations: 1.113 MB / 0.5574 GB, free: 51.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.258e-05/0.5752, allocations: 25.7 kB / 0.5575 GB, free: 51.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.5754, allocations: 0.8764 MB / 0.5583 GB, free: 50.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.5757, allocations: 457.3 kB / 0.5587 GB, free: 49.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.5757, allocations: 7.938 kB / 0.5588 GB, free: 49.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.496e-05/0.5758, allocations: 369.8 kB / 0.5591 GB, free: 49.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000803/0.5766, allocations: 0.7185 MB / 0.5598 GB, free: 48.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009177/0.5776, allocations: 1.125 MB / 0.5609 GB, free: 47.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.5786, allocations: 0.9197 MB / 0.5618 GB, free: 46.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.5786, allocations: 4 kB / 0.5618 GB, free: 46.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.003333/0.5819, allocations: 2.482 MB / 0.5642 GB, free: 44.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.582, allocations: 4 kB / 0.5642 GB, free: 44.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.582, allocations: 16 kB / 0.5643 GB, free: 44.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.5834, allocations: 0.5805 MB / 0.5648 GB, free: 43.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.5846, allocations: 355.5 kB / 0.5652 GB, free: 43.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005786/0.5904, allocations: 6.111 MB / 0.5711 GB, free: 36.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.5916, allocations: 71.83 kB / 0.5712 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.5917, allocations: 64 kB / 0.5713 GB, free: 36.73 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 () * 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.000213/0.592, allocations: 141.7 kB / 0.5714 GB, free: 36.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/0.5922, allocations: 166 kB / 0.5715 GB, free: 36.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.5954, allocations: 2.263 MB / 0.5738 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.5954, allocations: 12 kB / 0.5738 GB, free: 34.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.5955, allocations: 8 kB / 0.5738 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.5955, allocations: 11.88 kB / 0.5738 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006137/0.6016, allocations: 4.56 MB / 0.5782 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.6016, allocations: 4.062 kB / 0.5782 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009226/0.6026, allocations: 223.7 kB / 0.5785 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.6041, allocations: 0.6313 MB / 0.5791 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.78e-05/0.6042, allocations: 15.98 kB / 0.5791 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006742/0.6109, allocations: 7.717 MB / 0.5866 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.611, allocations: 7.906 kB / 0.5866 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004041/0.615, allocations: 3.55 MB / 0.5901 GB, free: 16.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006662/0.6157, allocations: 398.9 kB / 0.5905 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.6159, allocations: 11.98 kB / 0.5905 GB, free: 16.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008964/0.6168, allocations: 67.92 kB / 0.5906 GB, free: 16.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.617, allocations: 77.11 kB / 0.5906 GB, free: 16.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.762e-05/0.6171, allocations: 43.92 kB / 0.5907 GB, free: 16.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009795/0.6181, allocations: 0.8479 MB / 0.5915 GB, free: 15.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001454/0.6195, allocations: 471.9 kB / 0.592 GB, free: 14.92 MB / 378.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.0004206/0.62, allocations: 342.6 kB / 0.5923 GB, free: 14.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.6227, allocations: 2.231 MB / 0.5945 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6227, allocations: 4.562 kB / 0.5945 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.6245, allocations: 1.376 MB / 0.5958 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.6261, allocations: 339.5 kB / 0.5961 GB, free: 10.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006012/0.6321, allocations: 3.884 MB / 0.5999 GB, free: 6.629 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/0.6336, allocations: 2.022 MB / 0.6019 GB, free: 4.574 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6337, allocations: 0 / 0.6019 GB, free: 4.574 MB / 378.7 MB Notification: Performance of Templates: time 0.03873/0.6724, allocations: 24.61 MB / 0.6259 GB, free: 12.24 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches