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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008107/0.0008107, allocations: 87.28 kB / 292.1 MB, free: 5.914 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1883/0.1883, allocations: 45.15 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.08e-05, allocations: 7.984 kB / 460.5 MB, free: 69.89 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 63.24 MB / 0.5115 GB, free: 6.672 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4366/0.5496, allocations: 124.5 MB / 0.6331 GB, free: 1.805 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.5499, allocations: 74.97 kB / 0.6331 GB, free: 1.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1613/0.7112, allocations: 62.36 MB / 0.694 GB, free: 11.28 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.7113, allocations: 0 / 0.694 GB, free: 11.28 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001944/0.7115, allocations: 83.88 kB / 0.6941 GB, free: 11.2 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.005491/0.717, allocations: 2.927 MB / 0.697 GB, free: 8.207 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.717, allocations: 12.03 kB / 0.697 GB, free: 8.195 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005075/0.7175, allocations: 413 kB / 0.6974 GB, free: 7.781 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.7186, allocations: 416.2 kB / 0.6978 GB, free: 7.371 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003784/0.7224, allocations: 2.157 MB / 0.6999 GB, free: 5.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.7225, allocations: 217.7 kB / 0.7001 GB, free: 4.945 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003897/0.7229, allocations: 280 kB / 0.7004 GB, free: 4.672 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005448/0.7284, allocations: 3.613 MB / 0.7039 GB, free: 0.9141 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.218e-05/0.7284, allocations: 11.89 kB / 0.7039 GB, free: 0.9023 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002621/0.7287, allocations: 120 kB / 0.704 GB, free: 0.7852 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.7288, allocations: 137.4 kB / 0.7041 GB, free: 0.6484 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004795/0.7337, allocations: 2.915 MB / 0.707 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01762/0.7513, allocations: 11.65 MB / 0.7184 GB, free: 1.777 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003417/0.7548, allocations: 2.193 MB / 0.7205 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.7562, allocations: 1.062 MB / 0.7215 GB, free: 14.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003507/0.7565, allocations: 223.5 kB / 0.7218 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.7566, allocations: 51.88 kB / 0.7218 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=142): time 3.316e-06/0.7566, allocations: 0 / 0.7218 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=156): time 0.01069/0.7673, allocations: 6.072 MB / 0.7277 GB, free: 7.961 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.7673, allocations: 68.72 kB / 0.7278 GB, free: 7.883 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.7696, allocations: 1.69 MB / 0.7295 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.7697, allocations: 53.7 kB / 0.7295 GB, free: 6.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008855/0.7706, allocations: 1.367 MB / 0.7308 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.771, allocations: 0.5314 MB / 0.7314 GB, free: 4.168 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-05/0.7711, allocations: 32 kB / 0.7314 GB, free: 4.137 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.7713, allocations: 381.9 kB / 0.7318 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.7725, allocations: 0.8708 MB / 0.7326 GB, free: 2.887 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.774, allocations: 1.315 MB / 0.7339 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.7756, allocations: 1.093 MB / 0.735 GB, free: 304 kB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.7756, allocations: 7.984 kB / 0.735 GB, free: 296 kB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004564/0.7802, allocations: 2.879 MB / 0.7378 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.7802, allocations: 12 kB / 0.7378 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.7803, allocations: 12 kB / 0.7378 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.7813, allocations: 450.5 kB / 0.7382 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.783, allocations: 463.3 kB / 0.7387 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00701/0.7901, allocations: 7.042 MB / 0.7455 GB, free: 5.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.7917, allocations: 132 kB / 0.7457 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.7919, allocations: 75.98 kB / 0.7457 GB, free: 4.816 MB / 0.5261 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.0003603/0.7922, allocations: 217 kB / 0.746 GB, free: 4.598 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.7925, allocations: 209.5 kB / 0.7462 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005043/0.7976, allocations: 2.961 MB / 0.749 GB, free: 1.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.7976, allocations: 12 kB / 0.7491 GB, free: 1.398 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.7976, allocations: 11.98 kB / 0.7491 GB, free: 1.387 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.7976, allocations: 7.984 kB / 0.7491 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2944/1.092, allocations: 6.112 MB / 0.755 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/1.092, allocations: 3.688 kB / 0.755 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/1.093, allocations: 238.9 kB / 0.7553 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002321/1.096, allocations: 0.8317 MB / 0.7561 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001231/1.096, allocations: 42.61 kB / 0.7561 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/1.108, allocations: 10.18 MB / 0.7661 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.108, allocations: 7.922 kB / 0.7661 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00696/1.115, allocations: 4.385 MB / 0.7704 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/1.116, allocations: 0.4902 MB / 0.7708 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000257/1.117, allocations: 38.5 kB / 0.7709 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/1.118, allocations: 101.9 kB / 0.771 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003723/1.118, allocations: 126.2 kB / 0.7711 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/1.118, allocations: 44.67 kB / 0.7711 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002048/1.12, allocations: 1.305 MB / 0.7724 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.61e-07/1.12, allocations: 0 / 0.7724 GB, free: 132.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00246/1.123, allocations: 0.6293 MB / 0.773 GB, free: 132.4 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 (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.006156/1.129, allocations: 5.959 MB / 0.7788 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003399/1.132, allocations: 2.607 MB / 0.7814 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.132, allocations: 0 / 0.7814 GB, free: 130.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002033/1.134, allocations: 1.644 MB / 0.783 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/1.137, allocations: 0.4904 MB / 0.7835 GB, free: 129.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/1.148, allocations: 5.496 MB / 0.7888 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002106/1.15, allocations: 2.284 MB / 0.7911 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001665/1.151, allocations: 461.8 kB / 0.7915 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/1.153, allocations: 1.127 MB / 0.7926 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of SimCode: time 9.71e-07/1.153, allocations: 7.469 kB / 0.7926 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0873/1.24, allocations: 57.35 MB / 0.8486 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/1.24, allocations: 198.6 kB / 0.8488 GB, free: 99.94 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.35/4.591, allocations: 0 / 0.8488 GB, free: 99.94 MB / 0.5261 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)