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.001664/0.001664, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 225.6 MB / 234.8 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008167/0.0008167, allocations: 105.5 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1865/0.1865, allocations: 45.14 MB / 383.8 MB, free: 300 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.534e-05/1.546e-05, allocations: 7.938 kB / 453.2 MB, free: 75.85 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 63.25 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.407/0.5133, allocations: 123.9 MB / 0.6253 GB, free: 11.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.5135, allocations: 78.27 kB / 0.6254 GB, free: 11.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1658/0.6793, allocations: 61.54 MB / 0.6855 GB, free: 5.754 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6793, allocations: 0 / 0.6855 GB, free: 5.754 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003293/0.6797, allocations: 79.88 kB / 0.6856 GB, free: 5.676 MB / 474.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.0084/0.6881, allocations: 2.927 MB / 0.6884 GB, free: 2.684 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.6881, allocations: 11.97 kB / 0.6884 GB, free: 2.672 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001984/0.6901, allocations: 416.2 kB / 0.6888 GB, free: 2.262 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005117/0.6952, allocations: 2.153 MB / 0.6909 GB, free: 56 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.6954, allocations: 92.05 kB / 0.691 GB, free: 15.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005062/0.6959, allocations: 179.8 kB / 0.6912 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005237/0.7012, allocations: 2.729 MB / 0.6939 GB, free: 13.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005619/0.7068, allocations: 3.223 MB / 0.697 GB, free: 9.691 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.609e-05/0.7069, allocations: 8 kB / 0.697 GB, free: 9.684 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.7071, allocations: 4 kB / 0.697 GB, free: 9.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/0.7073, allocations: 129.5 kB / 0.6971 GB, free: 9.551 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/0.7256, allocations: 11.1 MB / 0.708 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003403/0.729, allocations: 2.175 MB / 0.7101 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.7304, allocations: 1.042 MB / 0.7111 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000406/0.7308, allocations: 227.4 kB / 0.7113 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.7309, allocations: 47.88 kB / 0.7114 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 3.276e-06/0.7309, allocations: 0 / 0.7114 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162): time 0.01023/0.7411, allocations: 5.604 MB / 0.7169 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.7412, allocations: 68.72 kB / 0.7169 GB, free: 4.789 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002287/0.7435, allocations: 1.444 MB / 0.7183 GB, free: 3.348 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.7436, allocations: 25.7 kB / 0.7184 GB, free: 3.316 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009418/0.7446, allocations: 1.358 MB / 0.7197 GB, free: 1.941 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004297/0.745, allocations: 0.5273 MB / 0.7202 GB, free: 1.406 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.7451, allocations: 0 / 0.7202 GB, free: 1.406 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001799/0.7453, allocations: 385.8 kB / 0.7206 GB, free: 1.023 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.7464, allocations: 0.859 MB / 0.7214 GB, free: 168 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.748, allocations: 1.276 MB / 0.7226 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/0.7498, allocations: 1.077 MB / 0.7237 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.7499, allocations: 4 kB / 0.7237 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005169/0.755, allocations: 2.739 MB / 0.7264 GB, free: 10.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.7551, allocations: 9.719 kB / 0.7264 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.7551, allocations: 16 kB / 0.7264 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.7562, allocations: 446.5 kB / 0.7268 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.7579, allocations: 463.3 kB / 0.7273 GB, free: 9.949 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006958/0.7648, allocations: 6.733 MB / 0.7338 GB, free: 2.871 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.7667, allocations: 99.81 kB / 0.7339 GB, free: 2.773 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.7669, allocations: 79.92 kB / 0.734 GB, free: 2.695 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 (210): * Single equations (assignments): 207 * 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.0003747/0.7673, allocations: 148.5 kB / 0.7342 GB, free: 2.543 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/0.7676, allocations: 193.6 kB / 0.7343 GB, free: 2.352 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00486/0.7725, allocations: 2.847 MB / 0.7371 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.7725, allocations: 16 kB / 0.7371 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.7726, allocations: 8 kB / 0.7371 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.7726, allocations: 7.969 kB / 0.7372 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009406/0.782, allocations: 5.729 MB / 0.7428 GB, free: 9.621 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.782, allocations: 4.344 kB / 0.7428 GB, free: 9.617 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.7831, allocations: 251.6 kB / 0.743 GB, free: 9.371 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.7851, allocations: 0.8452 MB / 0.7438 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.7852, allocations: 15.98 kB / 0.7438 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2957/1.081, allocations: 9.998 MB / 0.7536 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/1.081, allocations: 3.688 kB / 0.7536 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007901/1.089, allocations: 4.349 MB / 0.7579 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/1.09, allocations: 489.7 kB / 0.7583 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006631/1.091, allocations: 8.438 kB / 0.7583 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/1.093, allocations: 82.92 kB / 0.7584 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000391/1.093, allocations: 125.1 kB / 0.7585 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/1.093, allocations: 47.05 kB / 0.7586 GB, free: 138.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003001/1.096, allocations: 1.091 MB / 0.7596 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.1e-07/1.096, allocations: 0 / 0.7596 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002769/1.099, allocations: 0.5412 MB / 0.7602 GB, free: 138.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 (116): * Single equations (assignments): 113 * 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.0006921/1.1, allocations: 382.1 kB / 0.7605 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003973/1.104, allocations: 2.537 MB / 0.763 GB, free: 138 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.104, allocations: 1.25 kB / 0.763 GB, free: 138 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002318/1.106, allocations: 1.61 MB / 0.7646 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/1.109, allocations: 428.6 kB / 0.765 GB, free: 137.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.119, allocations: 4.64 MB / 0.7695 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00354/1.123, allocations: 2.278 MB / 0.7717 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001942/1.125, allocations: 468.6 kB / 0.7722 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005957/1.126, allocations: 150 kB / 0.7723 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of SimCode: time 8.32e-07/1.126, allocations: 0 / 0.7723 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.041/1.167, allocations: 28.45 MB / 0.8001 GB, free: 134.3 MB / 0.5261 GB 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)