Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001572/0.001572, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.272/0.272, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.019e-05/3.029e-05, allocations: 0 / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 58.86 MB / 484.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5402/0.6549, allocations: 123 MB / 0.5929 GB, free: 13.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.6552, allocations: 77.52 kB / 0.593 GB, free: 13.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3515/1.007, allocations: 61.93 MB / 0.6534 GB, free: 7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.007, allocations: 0 / 0.6534 GB, free: 7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005286/1.007, allocations: 83.88 kB / 0.6535 GB, free: 6.918 MB / 458.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.01607/1.023, allocations: 2.908 MB / 0.6564 GB, free: 3.945 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.134e-05/1.023, allocations: 11.98 kB / 0.6564 GB, free: 3.934 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003658/1.027, allocations: 404.2 kB / 0.6568 GB, free: 3.535 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/1.039, allocations: 2.153 MB / 0.6589 GB, free: 1.328 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005088/1.04, allocations: 217.7 kB / 0.6591 GB, free: 1.113 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001747/1.041, allocations: 279.9 kB / 0.6593 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01811/1.06, allocations: 3.628 MB / 0.6629 GB, free: 13.07 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002221/1.06, allocations: 11.89 kB / 0.6629 GB, free: 13.05 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001293/1.061, allocations: 124 kB / 0.663 GB, free: 12.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003075/1.062, allocations: 133.5 kB / 0.6631 GB, free: 12.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/1.076, allocations: 2.927 MB / 0.666 GB, free: 9.863 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04923/1.125, allocations: 11.63 MB / 0.6773 GB, free: 13.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009896/1.135, allocations: 2.21 MB / 0.6795 GB, free: 11.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004169/1.14, allocations: 1.067 MB / 0.6806 GB, free: 10.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008035/1.14, allocations: 223.5 kB / 0.6808 GB, free: 10.29 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.39e-05/1.141, allocations: 55.88 kB / 0.6808 GB, free: 10.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 7.183e-06/1.141, allocations: 0 / 0.6808 GB, free: 10.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.02951/1.17, allocations: 6.053 MB / 0.6867 GB, free: 4.117 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.093e-05/1.17, allocations: 68.72 kB / 0.6868 GB, free: 4.039 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006915/1.177, allocations: 1.69 MB / 0.6884 GB, free: 2.305 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005461/1.178, allocations: 53.69 kB / 0.6885 GB, free: 2.246 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/1.18, allocations: 1.272 MB / 0.6897 GB, free: 0.9609 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/1.181, allocations: 0.5353 MB / 0.6903 GB, free: 428 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003146/1.182, allocations: 36 kB / 0.6903 GB, free: 392 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003355/1.182, allocations: 378.8 kB / 0.6907 GB, free: 4 kB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003779/1.186, allocations: 0.8747 MB / 0.6915 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004826/1.191, allocations: 1.319 MB / 0.6928 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005113/1.196, allocations: 1.091 MB / 0.6939 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-05/1.196, allocations: 7.938 kB / 0.6939 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01269/1.209, allocations: 2.76 MB / 0.6966 GB, free: 9.754 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/1.209, allocations: 11.98 kB / 0.6966 GB, free: 9.742 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.435e-05/1.209, allocations: 16 kB / 0.6966 GB, free: 9.727 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003204/1.212, allocations: 446.6 kB / 0.697 GB, free: 9.281 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005379/1.217, allocations: 459.3 kB / 0.6975 GB, free: 8.832 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/1.23, allocations: 7.027 MB / 0.7043 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003189/1.233, allocations: 135.8 kB / 0.7044 GB, free: 1.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005898/1.234, allocations: 75.98 kB / 0.7045 GB, free: 1.195 MB / 0.4948 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: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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.0006558/1.234, allocations: 212.4 kB / 0.7047 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008355/1.235, allocations: 205.5 kB / 0.7049 GB, free: 0.7773 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3927/1.628, allocations: 2.952 MB / 0.7078 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-05/1.628, allocations: 16.22 kB / 0.7078 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-05/1.628, allocations: 11.89 kB / 0.7078 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-05/1.628, allocations: 7.641 kB / 0.7078 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02056/1.649, allocations: 6.119 MB / 0.7138 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.257e-05/1.649, allocations: 4.438 kB / 0.7138 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/1.651, allocations: 238.3 kB / 0.714 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004164/1.655, allocations: 0.8294 MB / 0.7149 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003888/1.656, allocations: 43.81 kB / 0.7149 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01968/1.675, allocations: 10.19 MB / 0.7248 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.675, allocations: 3.188 kB / 0.7249 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01184/1.687, allocations: 4.389 MB / 0.7291 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/1.689, allocations: 0.4931 MB / 0.7296 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007752/1.69, allocations: 37.5 kB / 0.7297 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00275/1.693, allocations: 98.34 kB / 0.7297 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006672/1.694, allocations: 126.6 kB / 0.7299 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.694, allocations: 46.06 kB / 0.7299 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004742/1.699, allocations: 1.296 MB / 0.7312 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.82e-07/1.699, allocations: 0 / 0.7312 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004037/1.703, allocations: 0.629 MB / 0.7318 GB, free: 122.1 MB / 0.4948 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,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 (113): * Single equations (assignments): 110 * 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.001702/1.705, allocations: 406.7 kB / 0.7322 GB, free: 122 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.715, allocations: 2.606 MB / 0.7347 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/1.715, allocations: 0 / 0.7347 GB, free: 121.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006252/1.722, allocations: 1.647 MB / 0.7363 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005552/1.727, allocations: 0.4895 MB / 0.7368 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/1.74, allocations: 4.779 MB / 0.7415 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002552/1.742, allocations: 2.247 MB / 0.7437 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.744, allocations: 168 kB / 0.7438 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.473e-06/1.744, allocations: 0 / 0.7438 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.1177/1.861, allocations: 74.94 MB / 0.817 GB, free: 74.06 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)