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.001214/0.001214, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.4 MB / 223.6 MB, free: 9.039 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.0007458/0.0007455, allocations: 85.42 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.318/0.318, allocations: 43.56 MB / 363.8 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.000348, allocations: 12 kB / 432.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1057, allocations: 58.85 MB / 491.4 MB, free: 10.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3076/0.4134, allocations: 123.3 MB / 0.6004 GB, free: 10.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.4137, allocations: 75.97 kB / 0.6004 GB, free: 10.85 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1567/0.5704, allocations: 61.79 MB / 0.6608 GB, free: 12.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5704, allocations: 0 / 0.6608 GB, free: 12.79 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002146/0.5707, allocations: 87.86 kB / 0.6608 GB, free: 12.7 MB / 490.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.007269/0.5779, allocations: 3.237 MB / 0.664 GB, free: 9.391 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.578, allocations: 19.98 kB / 0.664 GB, free: 9.371 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.5794, allocations: 400.5 kB / 0.6644 GB, free: 8.977 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004683/0.5841, allocations: 2.238 MB / 0.6666 GB, free: 6.684 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.5843, allocations: 218 kB / 0.6668 GB, free: 6.469 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006112/0.5849, allocations: 288.2 kB / 0.6671 GB, free: 6.188 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006265/0.5911, allocations: 3.715 MB / 0.6707 GB, free: 2.328 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.046e-05/0.5912, allocations: 4.125 kB / 0.6707 GB, free: 2.324 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002803/0.5915, allocations: 127.9 kB / 0.6708 GB, free: 2.199 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.5917, allocations: 133.5 kB / 0.671 GB, free: 2.066 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.214/0.8057, allocations: 3.007 MB / 0.6739 GB, free: 95.61 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02265/0.8284, allocations: 11.65 MB / 0.6853 GB, free: 93.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003488/0.8319, allocations: 2.245 MB / 0.6875 GB, free: 92.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.8336, allocations: 1.092 MB / 0.6885 GB, free: 92.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003525/0.834, allocations: 233.6 kB / 0.6887 GB, free: 92.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.834, allocations: 46.06 kB / 0.6888 GB, free: 92.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.038e-06/0.834, allocations: 0 / 0.6888 GB, free: 92.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.0161/0.8501, allocations: 8.118 MB / 0.6967 GB, free: 91.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.8502, allocations: 68.62 kB / 0.6968 GB, free: 91.44 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002495/0.8527, allocations: 1.924 MB / 0.6987 GB, free: 91.22 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.8528, allocations: 51.02 kB / 0.6987 GB, free: 91.19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006596/0.8535, allocations: 1.356 MB / 0.7 GB, free: 90.74 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003275/0.8538, allocations: 0.5316 MB / 0.7006 GB, free: 90.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.8539, allocations: 33.5 kB / 0.7006 GB, free: 90.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.985e-05/0.854, allocations: 378.5 kB / 0.701 GB, free: 90.09 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.8553, allocations: 0.9039 MB / 0.7018 GB, free: 90.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/0.8567, allocations: 1.351 MB / 0.7032 GB, free: 89.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00978/0.8665, allocations: 4.57 MB / 0.7076 GB, free: 88.06 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.008e-05/0.8665, allocations: 3.031 kB / 0.7076 GB, free: 88.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005572/0.8721, allocations: 2.953 MB / 0.7105 GB, free: 86.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.8722, allocations: 9.406 kB / 0.7105 GB, free: 86.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.786e-05/0.8723, allocations: 13.25 kB / 0.7105 GB, free: 86.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.8734, allocations: 443 kB / 0.7109 GB, free: 86.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.8752, allocations: 460.8 kB / 0.7114 GB, free: 86.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006385/0.8816, allocations: 7.061 MB / 0.7183 GB, free: 81.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001949/0.8835, allocations: 131.5 kB / 0.7184 GB, free: 81.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003361/0.8839, allocations: 75.42 kB / 0.7185 GB, free: 81.59 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[1]:VARIABLE(unit = "A" fixed = true 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 () * Number of clocked 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.002075/0.886, allocations: 0.9033 MB / 0.7194 GB, free: 81.13 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005839/0.8866, allocations: 208.4 kB / 0.7196 GB, free: 81.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005799/0.8924, allocations: 3.015 MB / 0.7225 GB, free: 79.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.8924, allocations: 15.88 kB / 0.7225 GB, free: 79.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.302e-05/0.8924, allocations: 7.625 kB / 0.7225 GB, free: 79.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.8925, allocations: 11.91 kB / 0.7225 GB, free: 79.87 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.9048, allocations: 6.178 MB / 0.7286 GB, free: 77.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/0.9049, allocations: 7.438 kB / 0.7286 GB, free: 77.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.9059, allocations: 236.5 kB / 0.7288 GB, free: 77.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/0.9082, allocations: 0.8361 MB / 0.7296 GB, free: 77.17 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.9083, allocations: 40.58 kB / 0.7297 GB, free: 77.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.9187, allocations: 10.23 MB / 0.7396 GB, free: 70.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.9187, allocations: 3.938 kB / 0.7397 GB, free: 70.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006546/0.9253, allocations: 4.271 MB / 0.7438 GB, free: 68.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/0.9265, allocations: 0.4942 MB / 0.7443 GB, free: 68.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005211/0.9271, allocations: 35.42 kB / 0.7443 GB, free: 68.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.9284, allocations: 103.9 kB / 0.7444 GB, free: 68.35 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/0.9287, allocations: 123.4 kB / 0.7446 GB, free: 68.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.9289, allocations: 49.75 kB / 0.7446 GB, free: 68.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002253/0.9311, allocations: 1.32 MB / 0.7459 GB, free: 67.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 2e-07/0.9311, allocations: 5.781 kB / 0.7459 GB, free: 67.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002529/0.9337, allocations: 0.6278 MB / 0.7465 GB, free: 67.72 MB / 490.7 MB 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 () * Number of clocked 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.0006679/0.9344, allocations: 413.9 kB / 0.7469 GB, free: 67.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003886/0.9383, allocations: 2.659 MB / 0.7495 GB, free: 66.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.9383, allocations: 3.812 kB / 0.7495 GB, free: 66.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.9404, allocations: 1.692 MB / 0.7512 GB, free: 65.51 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003603/0.9441, allocations: 0.5062 MB / 0.7517 GB, free: 65.35 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.9559, allocations: 6.989 MB / 0.7585 GB, free: 61.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002126/0.958, allocations: 2.189 MB / 0.7606 GB, free: 60.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008416/0.9589, allocations: 159.9 kB / 0.7608 GB, free: 60.46 MB / 490.7 MB Notification: Performance of SimCode: time 1.002e-06/0.9589, allocations: 0 / 0.7608 GB, free: 60.46 MB / 490.7 MB Notification: Performance of Templates: time 0.0743/1.033, allocations: 78.71 MB / 0.8376 GB, free: 4.504 MB / 490.7 MB 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)