Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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: 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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00149/0.00149, allocations: 177.8 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008401/0.0008404, allocations: 86.62 kB / 261.7 MB, free: 1.676 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.1975/0.1975, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.142e-05/1.144e-05, allocations: 4 kB / 418.3 MB, free: 28.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09954/0.09957, allocations: 58.85 MB / 477.1 MB, free: 1.633 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4141/0.5137, allocations: 122.3 MB / 0.5854 GB, free: 5.684 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.5139, allocations: 83.14 kB / 0.5855 GB, free: 5.645 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1589/0.6729, allocations: 61.1 MB / 0.6451 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6729, allocations: 0 / 0.6451 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002302/0.6731, allocations: 79.88 kB / 0.6452 GB, free: 448 kB / 442.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.007111/0.6803, allocations: 2.919 MB / 0.648 GB, free: 13.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.6803, allocations: 8.031 kB / 0.6481 GB, free: 13.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001597/0.6819, allocations: 408.2 kB / 0.6484 GB, free: 13.04 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004332/0.6863, allocations: 2.145 MB / 0.6505 GB, free: 10.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.702e-05/0.6864, allocations: 95.98 kB / 0.6506 GB, free: 10.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003838/0.6868, allocations: 171.9 kB / 0.6508 GB, free: 10.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004711/0.6915, allocations: 2.737 MB / 0.6535 GB, free: 7.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005163/0.6967, allocations: 3.223 MB / 0.6566 GB, free: 4.477 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-05/0.6968, allocations: 23.88 kB / 0.6566 GB, free: 4.453 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002108/0.697, allocations: 0 / 0.6566 GB, free: 4.453 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.6972, allocations: 129.5 kB / 0.6568 GB, free: 4.324 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01845/0.7156, allocations: 11.08 MB / 0.6676 GB, free: 8.957 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003261/0.7189, allocations: 2.194 MB / 0.6697 GB, free: 6.648 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001291/0.7203, allocations: 1.041 MB / 0.6707 GB, free: 5.609 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003588/0.7206, allocations: 231.4 kB / 0.671 GB, free: 5.344 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.7207, allocations: 47.88 kB / 0.671 GB, free: 5.289 MB / 474.7 MB Notification: Performance of pre-optimization done (n=148): time 4.027e-06/0.7207, allocations: 0 / 0.671 GB, free: 5.289 MB / 474.7 MB Notification: Performance of matching and sorting (n=162): time 0.009731/0.7304, allocations: 5.581 MB / 0.6765 GB, free: 15.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.7305, allocations: 68.72 kB / 0.6765 GB, free: 15.58 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/0.7328, allocations: 1.447 MB / 0.6779 GB, free: 14.13 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.7329, allocations: 25.7 kB / 0.678 GB, free: 14.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009208/0.7338, allocations: 1.35 MB / 0.6793 GB, free: 12.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004947/0.7343, allocations: 0.5311 MB / 0.6798 GB, free: 12.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.7345, allocations: 0 / 0.6798 GB, free: 12.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.7347, allocations: 381.8 kB / 0.6802 GB, free: 11.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.7359, allocations: 0.8513 MB / 0.681 GB, free: 10.96 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/0.7376, allocations: 1.288 MB / 0.6823 GB, free: 9.492 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.7391, allocations: 1.077 MB / 0.6833 GB, free: 8.418 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.7392, allocations: 4 kB / 0.6833 GB, free: 8.414 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.004467/0.7436, allocations: 2.731 MB / 0.686 GB, free: 5.664 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.7437, allocations: 15.94 kB / 0.686 GB, free: 5.648 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/0.7437, allocations: 12 kB / 0.686 GB, free: 5.637 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.7448, allocations: 442.5 kB / 0.6864 GB, free: 5.195 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.7465, allocations: 475.2 kB / 0.6869 GB, free: 4.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006601/0.7531, allocations: 6.729 MB / 0.6934 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.7548, allocations: 99.81 kB / 0.6935 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001606/0.755, allocations: 71.98 kB / 0.6936 GB, free: 13.49 MB / 0.4948 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: 60 * 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.0003505/0.7554, allocations: 144.6 kB / 0.6937 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003093/0.7557, allocations: 201.5 kB / 0.6939 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004996/0.7607, allocations: 2.851 MB / 0.6967 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.7607, allocations: 16 kB / 0.6967 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.7607, allocations: 8 kB / 0.6967 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.7608, allocations: 7.969 kB / 0.6968 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009601/0.7704, allocations: 5.725 MB / 0.7023 GB, free: 4.406 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.148e-06/0.7704, allocations: 4 kB / 0.7024 GB, free: 4.402 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.7715, allocations: 251.6 kB / 0.7026 GB, free: 4.156 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002084/0.7735, allocations: 0.8296 MB / 0.7034 GB, free: 3.316 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.7737, allocations: 19.97 kB / 0.7034 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2785/1.052, allocations: 10 MB / 0.7132 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/1.052, allocations: 7.156 kB / 0.7132 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006651/1.059, allocations: 4.344 MB / 0.7174 GB, free: 126.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009901/1.06, allocations: 485.9 kB / 0.7179 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002614/1.06, allocations: 15.05 kB / 0.7179 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/1.061, allocations: 87.27 kB / 0.718 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/1.062, allocations: 123.5 kB / 0.7181 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/1.062, allocations: 46.5 kB / 0.7182 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001772/1.063, allocations: 1.086 MB / 0.7192 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.2e-07/1.063, allocations: 0 / 0.7192 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002424/1.066, allocations: 0.5389 MB / 0.7197 GB, free: 126.5 MB / 0.4948 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,voltageController.PI_d.x,voltageController.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.000664/1.067, allocations: 387.5 kB / 0.7201 GB, free: 126.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003647/1.07, allocations: 2.533 MB / 0.7226 GB, free: 126 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.07, allocations: 0.875 kB / 0.7226 GB, free: 126 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002137/1.072, allocations: 1.606 MB / 0.7242 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/1.074, allocations: 420.3 kB / 0.7246 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007313/1.082, allocations: 4.662 MB / 0.7291 GB, free: 124.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001583/1.083, allocations: 2.265 MB / 0.7313 GB, free: 123.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001473/1.085, allocations: 467.7 kB / 0.7318 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/1.085, allocations: 147 kB / 0.7319 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of SimCode: time 4.91e-07/1.085, allocations: 3.594 kB / 0.7319 GB, free: 123.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.04156/1.127, allocations: 28.31 MB / 0.7596 GB, free: 122.2 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)