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: 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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008542/0.0008542, allocations: 93.81 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3013/0.3013, allocations: 45.22 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000248/0.000248, allocations: 8 kB / 468.4 MB, free: 7.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.281, allocations: 63.24 MB / 0.5192 GB, free: 37.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.423, allocations: 124.6 MB / 0.6409 GB, free: 10.77 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.4233, allocations: 83.89 kB / 0.6409 GB, free: 10.69 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3828/0.8062, allocations: 62.27 MB / 0.7018 GB, free: 105.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.8062, allocations: 0 / 0.7018 GB, free: 105.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000302/0.8065, allocations: 86.27 kB / 0.7018 GB, free: 105.3 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.01008/0.8167, allocations: 3.29 MB / 0.7051 GB, free: 103.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.8167, allocations: 12.64 kB / 0.7051 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001935/0.8187, allocations: 413.2 kB / 0.7055 GB, free: 103.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00562/0.8243, allocations: 2.178 MB / 0.7076 GB, free: 103.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.8245, allocations: 212.7 kB / 0.7078 GB, free: 103.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007796/0.8253, allocations: 279.2 kB / 0.7081 GB, free: 103.2 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006771/0.8321, allocations: 3.695 MB / 0.7117 GB, free: 102.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.499e-05/0.8322, allocations: 6.562 kB / 0.7117 GB, free: 102.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/0.8325, allocations: 119.9 kB / 0.7118 GB, free: 102.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/0.8326, allocations: 135.9 kB / 0.7119 GB, free: 102.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005074/0.8377, allocations: 3.002 MB / 0.7148 GB, free: 101.1 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01869/0.8564, allocations: 11.64 MB / 0.7262 GB, free: 95.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005261/0.8617, allocations: 2.261 MB / 0.7284 GB, free: 94 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004583/0.8622, allocations: 225 kB / 0.7286 GB, free: 93.81 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.8623, allocations: 58.06 kB / 0.7287 GB, free: 93.75 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 6.422e-06/0.8623, allocations: 0 / 0.7287 GB, free: 93.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.02546/0.8878, allocations: 8.283 MB / 0.7368 GB, free: 90.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.8879, allocations: 79.03 kB / 0.7369 GB, free: 90.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00376/0.8916, allocations: 1.714 MB / 0.7385 GB, free: 89.95 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.8918, allocations: 49.58 kB / 0.7386 GB, free: 89.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009015/0.8927, allocations: 1.371 MB / 0.7399 GB, free: 88.85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004266/0.8932, allocations: 0.5276 MB / 0.7404 GB, free: 88.44 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.8933, allocations: 35.72 kB / 0.7405 GB, free: 88.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.8934, allocations: 378.3 kB / 0.7408 GB, free: 88.07 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/0.8953, allocations: 0.903 MB / 0.7417 GB, free: 87.74 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/0.8974, allocations: 1.34 MB / 0.743 GB, free: 86.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002228/0.8996, allocations: 1.12 MB / 0.7441 GB, free: 86.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/0.8997, allocations: 7.656 kB / 0.7441 GB, free: 86.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006522/0.9062, allocations: 2.955 MB / 0.747 GB, free: 85.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.9063, allocations: 13.44 kB / 0.747 GB, free: 85.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.9063, allocations: 18.06 kB / 0.747 GB, free: 85.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.9078, allocations: 444.1 kB / 0.7475 GB, free: 85.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002638/0.9104, allocations: 461.1 kB / 0.7479 GB, free: 85.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008993/0.9194, allocations: 7.202 MB / 0.7549 GB, free: 79.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002834/0.9223, allocations: 130.6 kB / 0.755 GB, free: 79.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004082/0.9227, allocations: 72.36 kB / 0.7551 GB, free: 79.67 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.002474/0.9252, allocations: 0.9096 MB / 0.756 GB, free: 79.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006787/0.9259, allocations: 208.7 kB / 0.7562 GB, free: 79.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007464/0.9334, allocations: 3.024 MB / 0.7592 GB, free: 77.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/0.9334, allocations: 21.05 kB / 0.7592 GB, free: 77.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/0.9335, allocations: 6.562 kB / 0.7592 GB, free: 77.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.9335, allocations: 7.734 kB / 0.7592 GB, free: 77.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/0.9481, allocations: 6.164 MB / 0.7652 GB, free: 73.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.9482, allocations: 4 kB / 0.7652 GB, free: 73.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/0.9496, allocations: 238 kB / 0.7654 GB, free: 73.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002714/0.9523, allocations: 0.8457 MB / 0.7663 GB, free: 73.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.9525, allocations: 35.75 kB / 0.7663 GB, free: 73.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/0.9671, allocations: 10.55 MB / 0.7766 GB, free: 62.69 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.9672, allocations: 4.031 kB / 0.7766 GB, free: 62.69 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008886/0.9761, allocations: 4.418 MB / 0.7809 GB, free: 58.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.9775, allocations: 0.4887 MB / 0.7814 GB, free: 57.63 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.9779, allocations: 36.09 kB / 0.7814 GB, free: 57.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.9793, allocations: 107.8 kB / 0.7815 GB, free: 57.49 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002948/0.9796, allocations: 121 kB / 0.7817 GB, free: 57.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.9797, allocations: 43.98 kB / 0.7817 GB, free: 57.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001962/0.9817, allocations: 1.325 MB / 0.783 GB, free: 55.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9817, allocations: 0 / 0.783 GB, free: 55.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002297/0.984, allocations: 0.6366 MB / 0.7836 GB, free: 55.34 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,dqCurrentController.PI_d.x,dqCurrentController.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.0006191/0.9846, allocations: 413.5 kB / 0.784 GB, free: 54.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003858/0.9885, allocations: 2.674 MB / 0.7866 GB, free: 52.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.9885, allocations: 0.875 kB / 0.7866 GB, free: 52.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.9904, allocations: 1.689 MB / 0.7883 GB, free: 50.54 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/0.9925, allocations: 495.5 kB / 0.7887 GB, free: 50.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008762/1.001, allocations: 6.896 MB / 0.7955 GB, free: 43.16 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001842/1.003, allocations: 2.268 MB / 0.7977 GB, free: 40.86 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001554/1.005, allocations: 464.7 kB / 0.7981 GB, free: 40.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000413/1.005, allocations: 151.4 kB / 0.7983 GB, free: 40.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.062e-06/1.005, allocations: 4 kB / 0.7983 GB, free: 40.27 MB / 490.7 MB Notification: Performance of Templates: time 0.04606/1.051, allocations: 34.5 MB / 0.832 GB, free: 6.055 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)