Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") [: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.002255/0.002255, allocations: 204 kB / 8.54 MB, free: 1.75 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008982/0.0008981, allocations: 93.02 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1778/0.1778, allocations: 45.13 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.591e-06/5.69e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09971/0.09974, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4042/0.5039, allocations: 123.8 MB / 0.6247 GB, free: 11.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.5042, allocations: 74.28 kB / 0.6247 GB, free: 11.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1746/0.6789, allocations: 61.22 MB / 0.6845 GB, free: 6.59 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004545/0.6794, allocations: 79.88 kB / 0.6846 GB, free: 6.512 MB / 474.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.008936/0.6884, allocations: 2.908 MB / 0.6874 GB, free: 3.539 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.6884, allocations: 8.031 kB / 0.6874 GB, free: 3.531 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002566/0.691, allocations: 411.5 kB / 0.6878 GB, free: 3.125 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007095/0.6981, allocations: 2.176 MB / 0.69 GB, free: 0.8945 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/0.6984, allocations: 99.98 kB / 0.69 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001211/0.6996, allocations: 167.9 kB / 0.6902 GB, free: 0.6328 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007471/0.7071, allocations: 2.776 MB / 0.6929 GB, free: 13.85 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009293/0.7164, allocations: 3.262 MB / 0.6961 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001515/0.7166, allocations: 7.906 kB / 0.6961 GB, free: 10.44 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006843/0.7173, allocations: 4 kB / 0.6961 GB, free: 10.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.7175, allocations: 137.5 kB / 0.6962 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02488/0.7423, allocations: 11.1 MB / 0.7071 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/0.7452, allocations: 1.225 MB / 0.7083 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/0.7473, allocations: 1.128 MB / 0.7094 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005275/0.7478, allocations: 215.5 kB / 0.7096 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/0.7479, allocations: 51.86 kB / 0.7096 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 4.509e-06/0.7479, allocations: 0 / 0.7096 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162): time 0.01293/0.7609, allocations: 5.667 MB / 0.7152 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.761, allocations: 68.72 kB / 0.7152 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004231/0.7652, allocations: 1.455 MB / 0.7167 GB, free: 4.996 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003538/0.7656, allocations: 25.7 kB / 0.7167 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001083/0.7667, allocations: 1.069 MB / 0.7177 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007745/0.7675, allocations: 0.5311 MB / 0.7183 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.7677, allocations: 0 / 0.7183 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002823/0.768, allocations: 377.9 kB / 0.7186 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/0.7697, allocations: 0.8786 MB / 0.7195 GB, free: 2.082 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001891/0.7716, allocations: 1.307 MB / 0.7207 GB, free: 0.5938 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001924/0.7736, allocations: 1.113 MB / 0.7218 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.909e-05/0.7736, allocations: 4 kB / 0.7218 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005325/0.7789, allocations: 2.794 MB / 0.7246 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.779, allocations: 4 kB / 0.7246 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.022e-05/0.779, allocations: 16 kB / 0.7246 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.7802, allocations: 442.5 kB / 0.725 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002002/0.7822, allocations: 443.3 kB / 0.7254 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006873/0.7891, allocations: 6.533 MB / 0.7318 GB, free: 4.891 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/0.7912, allocations: 67.89 kB / 0.7319 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003723/0.7916, allocations: 79.98 kB / 0.7319 GB, free: 4.746 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 207 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000594/0.7922, allocations: 148.4 kB / 0.7321 GB, free: 4.594 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007494/0.7929, allocations: 193.6 kB / 0.7323 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/0.7989, allocations: 2.887 MB / 0.7351 GB, free: 1.492 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.799, allocations: 16 kB / 0.7351 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.979e-05/0.799, allocations: 8 kB / 0.7351 GB, free: 1.469 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.799, allocations: 7.969 kB / 0.7351 GB, free: 1.461 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/0.8135, allocations: 5.75 MB / 0.7407 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.8136, allocations: 8 kB / 0.7407 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.8149, allocations: 239.7 kB / 0.741 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002629/0.8176, allocations: 0.8298 MB / 0.7418 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/0.8178, allocations: 19.92 kB / 0.7418 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/0.8312, allocations: 9.57 MB / 0.7512 GB, free: 0.5898 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/0.8313, allocations: 7.906 kB / 0.7512 GB, free: 0.582 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2659/1.097, allocations: 4.444 MB / 0.7555 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.099, allocations: 492.8 kB / 0.756 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/1.099, allocations: 6.219 kB / 0.756 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/1.1, allocations: 65.19 kB / 0.756 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/1.1, allocations: 85.95 kB / 0.7561 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/1.1, allocations: 52.31 kB / 0.7562 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001664/1.102, allocations: 1.1 MB / 0.7572 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001952/1.104, allocations: 0.5388 MB / 0.7578 GB, free: 119.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006186/1.105, allocations: 386.9 kB / 0.7581 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003396/1.108, allocations: 2.532 MB / 0.7606 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/1.108, allocations: 3.281 kB / 0.7606 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002052/1.11, allocations: 1.542 MB / 0.7621 GB, free: 119 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/1.112, allocations: 395.6 kB / 0.7625 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009892/1.122, allocations: 4.745 MB / 0.7671 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002485/1.125, allocations: 2.403 MB / 0.7695 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.232e-06/1.125, allocations: 1.969 kB / 0.7695 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.0532/1.178, allocations: 29.62 MB / 0.7984 GB, free: 115.6 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)