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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) 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: 185.3 kB / 16.41 MB, free: 5.727 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.045/2.045, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001152/0.001152, allocations: 100.3 kB / 270.9 MB, free: 8.383 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.5281/0.5281, allocations: 43.55 MB / 362.7 MB, free: 52.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004746/0.0004746, allocations: 12 kB / 431.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1445, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.546/0.6905, allocations: 123.1 MB / 0.599 GB, free: 11.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003371/0.6909, allocations: 75.97 kB / 0.5991 GB, free: 11.35 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2864/0.9773, allocations: 61.86 MB / 0.6595 GB, free: 13.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.244e-06/0.9774, allocations: 0 / 0.6595 GB, free: 13.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004228/0.9778, allocations: 83.88 kB / 0.6596 GB, free: 13.13 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.01452/0.9923, allocations: 3.279 MB / 0.6628 GB, free: 9.777 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.9924, allocations: 19.97 kB / 0.6628 GB, free: 9.758 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001927/0.9943, allocations: 409 kB / 0.6632 GB, free: 9.348 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002436/0.9968, allocations: 400.3 kB / 0.6636 GB, free: 8.953 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009183/1.006, allocations: 2.18 MB / 0.6657 GB, free: 6.719 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003564/1.006, allocations: 209.7 kB / 0.6659 GB, free: 6.512 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001298/1.008, allocations: 287.9 kB / 0.6662 GB, free: 6.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/1.021, allocations: 3.698 MB / 0.6698 GB, free: 2.387 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001635/1.021, allocations: 7.906 kB / 0.6698 GB, free: 2.379 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006127/1.022, allocations: 120 kB / 0.6699 GB, free: 2.262 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002309/1.022, allocations: 133.5 kB / 0.67 GB, free: 2.129 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3523/1.374, allocations: 3.01 MB / 0.673 GB, free: 95.42 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03444/1.409, allocations: 11.64 MB / 0.6843 GB, free: 93.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006704/1.416, allocations: 2.24 MB / 0.6865 GB, free: 92.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005728/1.416, allocations: 225.5 kB / 0.6867 GB, free: 92.26 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/1.416, allocations: 49.86 kB / 0.6868 GB, free: 92.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.318e-06/1.416, allocations: 1.969 kB / 0.6868 GB, free: 92.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.03224/1.449, allocations: 8.097 MB / 0.6947 GB, free: 91.27 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/1.449, allocations: 69.19 kB / 0.6948 GB, free: 91.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004152/1.453, allocations: 1.71 MB / 0.6964 GB, free: 91.01 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004394/1.453, allocations: 59.75 kB / 0.6965 GB, free: 90.98 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/1.454, allocations: 1.27 MB / 0.6977 GB, free: 90.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008317/1.455, allocations: 0.532 MB / 0.6983 GB, free: 90.13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00022/1.455, allocations: 35.53 kB / 0.6983 GB, free: 90.13 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/1.456, allocations: 383.5 kB / 0.6987 GB, free: 89.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002483/1.458, allocations: 0.9068 MB / 0.6995 GB, free: 89.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002914/1.461, allocations: 1.336 MB / 0.7008 GB, free: 89.33 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003242/1.464, allocations: 1.123 MB / 0.7019 GB, free: 89.31 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.493e-05/1.464, allocations: 9.656 kB / 0.7019 GB, free: 89.31 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008679/1.473, allocations: 2.825 MB / 0.7047 GB, free: 89.01 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/1.473, allocations: 12.03 kB / 0.7047 GB, free: 89.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.879e-05/1.473, allocations: 14.66 kB / 0.7047 GB, free: 89.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/1.475, allocations: 449 kB / 0.7052 GB, free: 88.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003649/1.479, allocations: 455.1 kB / 0.7056 GB, free: 88.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/1.49, allocations: 7.202 MB / 0.7126 GB, free: 83.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003148/1.493, allocations: 130.6 kB / 0.7128 GB, free: 83.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004543/1.494, allocations: 75.69 kB / 0.7128 GB, free: 83.58 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]: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: 59 * 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.002746/1.496, allocations: 0.9082 MB / 0.7137 GB, free: 83.11 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007677/1.497, allocations: 207.1 kB / 0.7139 GB, free: 83 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009885/1.507, allocations: 3.025 MB / 0.7169 GB, free: 81.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.85e-05/1.507, allocations: 15.86 kB / 0.7169 GB, free: 81.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.052e-05/1.507, allocations: 9.031 kB / 0.7169 GB, free: 81.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.167e-05/1.507, allocations: 7.781 kB / 0.7169 GB, free: 81.86 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02113/1.528, allocations: 6.171 MB / 0.7229 GB, free: 79.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-05/1.528, allocations: 2.5 kB / 0.7229 GB, free: 79.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002305/1.531, allocations: 234.9 kB / 0.7231 GB, free: 79.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004219/1.535, allocations: 0.8321 MB / 0.724 GB, free: 79.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003991/1.535, allocations: 40.22 kB / 0.724 GB, free: 79.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01984/1.555, allocations: 10.55 MB / 0.7343 GB, free: 72.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.555, allocations: 0 / 0.7343 GB, free: 72.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/1.567, allocations: 4.415 MB / 0.7386 GB, free: 70.46 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/1.569, allocations: 497.8 kB / 0.7391 GB, free: 70.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008412/1.57, allocations: 34.16 kB / 0.7391 GB, free: 70.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002826/1.573, allocations: 102.4 kB / 0.7392 GB, free: 70.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006923/1.574, allocations: 130.2 kB / 0.7393 GB, free: 70.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/1.574, allocations: 46.53 kB / 0.7394 GB, free: 70.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003466/1.578, allocations: 1.314 MB / 0.7407 GB, free: 69.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.272e-06/1.578, allocations: 0 / 0.7407 GB, free: 69.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003934/1.582, allocations: 0.6354 MB / 0.7413 GB, free: 69.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (112): * Single equations (assignments): 109 * 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.01342/1.595, allocations: 5.846 MB / 0.747 GB, free: 66.33 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007228/1.602, allocations: 2.682 MB / 0.7496 GB, free: 65.16 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.602, allocations: 0 / 0.7496 GB, free: 65.16 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004477/1.607, allocations: 1.695 MB / 0.7513 GB, free: 64.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004486/1.611, allocations: 490 kB / 0.7517 GB, free: 64.14 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04986/1.661, allocations: 26.69 MB / 0.7778 GB, free: 45.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003622/1.665, allocations: 2.252 MB / 0.78 GB, free: 44.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002986/1.668, allocations: 1.138 MB / 0.7811 GB, free: 43.43 MB / 490.7 MB Notification: Performance of SimCode: time 1.202e-06/1.668, allocations: 0 / 0.7811 GB, free: 43.43 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.151/5.82, allocations: 89.77 MB / 0.8688 GB, free: 2.551 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)