Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00164/0.001639, allocations: 179.8 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 221.3 MB / 236 MB, free: 2.98 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.00107/0.00107, allocations: 87.8 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2289/0.2289, allocations: 44.16 MB / 382.1 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.19e-05/3.192e-05, allocations: 4.219 kB / 451.9 MB, free: 9.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1399, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5019/0.6418, allocations: 123.5 MB / 0.6224 GB, free: 13.61 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.6421, allocations: 72.97 kB / 0.6224 GB, free: 13.54 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1733/0.8155, allocations: 62.29 MB / 0.6833 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.284e-06/0.8155, allocations: 4 kB / 0.6833 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003305/0.8159, allocations: 83.86 kB / 0.6833 GB, free: 14.81 MB / 0.4948 GB 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.00862/0.8245, allocations: 2.927 MB / 0.6862 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/0.8246, allocations: 8.031 kB / 0.6862 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001173/0.8258, allocations: 413 kB / 0.6866 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.8274, allocations: 399.5 kB / 0.687 GB, free: 11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004566/0.832, allocations: 2.149 MB / 0.6891 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.8322, allocations: 218 kB / 0.6893 GB, free: 8.582 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004239/0.8326, allocations: 287.9 kB / 0.6896 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006258/0.8389, allocations: 3.617 MB / 0.6931 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.399e-05/0.8389, allocations: 7.906 kB / 0.6931 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002786/0.8392, allocations: 120 kB / 0.6932 GB, free: 4.414 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.8394, allocations: 141.4 kB / 0.6933 GB, free: 4.273 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005021/0.8444, allocations: 2.911 MB / 0.6962 GB, free: 1.352 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01948/0.8639, allocations: 11.64 MB / 0.7076 GB, free: 5.406 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003807/0.8678, allocations: 2.188 MB / 0.7097 GB, free: 3.09 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.8693, allocations: 1.073 MB / 0.7107 GB, free: 2.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003948/0.8697, allocations: 223.5 kB / 0.711 GB, free: 1.762 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.8698, allocations: 43.88 kB / 0.711 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=142): time 4.198e-06/0.8698, allocations: 4 kB / 0.711 GB, free: 1.707 MB / 0.5105 GB Notification: Performance of matching and sorting (n=156): time 0.3855/1.255, allocations: 6.061 MB / 0.7169 GB, free: 131 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/1.255, allocations: 70.44 kB / 0.717 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003972/1.259, allocations: 1.691 MB / 0.7186 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004588/1.26, allocations: 53.86 kB / 0.7187 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001341/1.261, allocations: 1.367 MB / 0.72 GB, free: 130.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007061/1.262, allocations: 0.5252 MB / 0.7205 GB, free: 130 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/1.262, allocations: 41.09 kB / 0.7206 GB, free: 130 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000198/1.262, allocations: 377.4 kB / 0.7209 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/1.264, allocations: 0.8711 MB / 0.7218 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/1.266, allocations: 1.311 MB / 0.7231 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/1.268, allocations: 1.099 MB / 0.7241 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/1.268, allocations: 4.281 kB / 0.7241 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006328/1.274, allocations: 2.885 MB / 0.727 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.125e-05/1.274, allocations: 15.89 kB / 0.727 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/1.274, allocations: 18.06 kB / 0.727 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/1.275, allocations: 443 kB / 0.7274 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/1.277, allocations: 460.8 kB / 0.7279 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007635/1.285, allocations: 7.036 MB / 0.7347 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/1.288, allocations: 130.6 kB / 0.7349 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003124/1.288, allocations: 71.44 kB / 0.7349 GB, free: 125 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 (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.0005091/1.288, allocations: 214.1 kB / 0.7351 GB, free: 124.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005723/1.289, allocations: 203.5 kB / 0.7353 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006398/1.295, allocations: 2.968 MB / 0.7382 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/1.295, allocations: 15.25 kB / 0.7382 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/1.296, allocations: 7.781 kB / 0.7382 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.82e-05/1.296, allocations: 11.83 kB / 0.7383 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/1.307, allocations: 6.124 MB / 0.7442 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/1.307, allocations: 5.5 kB / 0.7442 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/1.308, allocations: 244.6 kB / 0.7445 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/1.311, allocations: 0.8195 MB / 0.7453 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/1.311, allocations: 45.8 kB / 0.7453 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/1.322, allocations: 10.19 MB / 0.7553 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.322, allocations: 7.484 kB / 0.7553 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006673/1.328, allocations: 4.384 MB / 0.7596 GB, free: 114.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/1.33, allocations: 0.4938 MB / 0.76 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/1.33, allocations: 31.72 kB / 0.7601 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/1.331, allocations: 103.1 kB / 0.7602 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/1.332, allocations: 121.6 kB / 0.7603 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/1.332, allocations: 50.61 kB / 0.7603 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00203/1.334, allocations: 1.296 MB / 0.7616 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.6e-07/1.334, allocations: 0 / 0.7616 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00314/1.337, allocations: 0.6357 MB / 0.7622 GB, free: 113.6 MB / 0.5105 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 (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.007052/1.344, allocations: 5.94 MB / 0.768 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00393/1.348, allocations: 2.613 MB / 0.7706 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.348, allocations: 5.844 kB / 0.7706 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002215/1.35, allocations: 1.649 MB / 0.7722 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/1.353, allocations: 487.1 kB / 0.7727 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.365, allocations: 5.505 MB / 0.778 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/1.367, allocations: 2.268 MB / 0.7802 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001843/1.369, allocations: 464.4 kB / 0.7807 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/1.37, allocations: 1.127 MB / 0.7818 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.542e-06/1.37, allocations: 0 / 0.7818 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09258/1.463, allocations: 57.26 MB / 0.8377 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/1.463, allocations: 190.9 kB / 0.8379 GB, free: 64.88 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.104/5.568, allocations: 0 / 0.8379 GB, free: 64.88 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)