Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.005612/0.005612, allocations: 174.4 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.848/1.848, allocations: 194.5 MB / 210.3 MB, free: 8.598 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001826/0.001826, allocations: 124.6 kB / 255.6 MB, free: 11.2 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2257/0.2257, allocations: 40.01 MB / 340.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005032/0.0005032, allocations: 11.06 kB / 406.1 MB, free: 52.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1465, allocations: 54.88 MB / 461 MB, free: 3.441 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5616/0.7081, allocations: 117.5 MB / 0.565 GB, free: 21.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.7085, allocations: 78.94 kB / 0.5651 GB, free: 21.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1594/0.8679, allocations: 61.74 MB / 0.6254 GB, free: 1.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.868, allocations: 0 / 0.6254 GB, free: 1.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002293/0.8682, allocations: 79.88 kB / 0.6254 GB, free: 1.242 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.00692/0.8752, allocations: 3.259 MB / 0.6286 GB, free: 14.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.8752, allocations: 8.031 kB / 0.6286 GB, free: 14.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.8763, allocations: 411.3 kB / 0.629 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004602/0.8809, allocations: 2.158 MB / 0.6311 GB, free: 12.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002634/0.8811, allocations: 219.9 kB / 0.6313 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004618/0.8816, allocations: 279.3 kB / 0.6316 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007096/0.8887, allocations: 3.677 MB / 0.6352 GB, free: 8.594 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-05/0.8888, allocations: 7.906 kB / 0.6352 GB, free: 8.586 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002861/0.8891, allocations: 124 kB / 0.6353 GB, free: 8.465 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.8893, allocations: 133.5 kB / 0.6355 GB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005729/0.895, allocations: 2.996 MB / 0.6384 GB, free: 5.324 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02416/0.9192, allocations: 11.59 MB / 0.6497 GB, free: 9.434 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004519/0.9238, allocations: 2.231 MB / 0.6519 GB, free: 7.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000581/0.9244, allocations: 223.5 kB / 0.6521 GB, free: 6.836 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.147e-05/0.9245, allocations: 51.88 kB / 0.6521 GB, free: 6.777 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 5.07e-06/0.9245, allocations: 0 / 0.6521 GB, free: 6.777 MB / 426.7 MB Notification: Performance of matching and sorting (n=155): time 0.0212/0.9457, allocations: 8.333 MB / 0.6603 GB, free: 14.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.9459, allocations: 72.66 kB / 0.6603 GB, free: 14.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003903/0.9498, allocations: 1.708 MB / 0.662 GB, free: 12.53 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002429/0.9501, allocations: 49.7 kB / 0.6621 GB, free: 12.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.9515, allocations: 1.347 MB / 0.6634 GB, free: 11.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007575/0.9522, allocations: 0.5276 MB / 0.6639 GB, free: 10.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.9524, allocations: 36 kB / 0.6639 GB, free: 10.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002735/0.9527, allocations: 373.9 kB / 0.6643 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/0.9547, allocations: 0.894 MB / 0.6652 GB, free: 9.273 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002225/0.9569, allocations: 1.334 MB / 0.6665 GB, free: 7.758 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002339/0.9593, allocations: 1.115 MB / 0.6676 GB, free: 6.645 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.85e-05/0.9593, allocations: 11.94 kB / 0.6676 GB, free: 6.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006757/0.9661, allocations: 2.934 MB / 0.6704 GB, free: 3.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.443e-05/0.9662, allocations: 9.406 kB / 0.6704 GB, free: 3.672 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.174e-05/0.9662, allocations: 16 kB / 0.6705 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.9676, allocations: 454.5 kB / 0.6709 GB, free: 3.203 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/0.9697, allocations: 455.3 kB / 0.6713 GB, free: 2.758 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009479/0.9792, allocations: 7.188 MB / 0.6783 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002752/0.982, allocations: 127.8 kB / 0.6785 GB, free: 11.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005423/0.9826, allocations: 76.05 kB / 0.6785 GB, free: 10.96 MB / 458.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 (203): * Single equations (assignments): 200 * 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.00319/0.9858, allocations: 0.9028 MB / 0.6794 GB, free: 10.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.9869, allocations: 205.4 kB / 0.6796 GB, free: 9.844 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008061/0.9949, allocations: 3.007 MB / 0.6825 GB, free: 6.812 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/0.995, allocations: 16 kB / 0.6826 GB, free: 6.797 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.844e-05/0.9951, allocations: 8 kB / 0.6826 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.04e-05/0.9951, allocations: 7.969 kB / 0.6826 GB, free: 6.781 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/1.016, allocations: 6.14 MB / 0.6886 GB, free: 0.5352 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/1.016, allocations: 0 / 0.6886 GB, free: 0.5352 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001472/1.018, allocations: 236.4 kB / 0.6888 GB, free: 312 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002947/1.021, allocations: 0.8296 MB / 0.6896 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003107/1.021, allocations: 39.92 kB / 0.6896 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/1.037, allocations: 10.55 MB / 0.6999 GB, free: 4.465 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.796e-06/1.037, allocations: 3.938 kB / 0.7 GB, free: 4.461 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/1.047, allocations: 4.383 MB / 0.7042 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002174/1.05, allocations: 494.3 kB / 0.7047 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009476/1.051, allocations: 39.94 kB / 0.7047 GB, free: 15.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/1.053, allocations: 99.88 kB / 0.7048 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004536/1.053, allocations: 117.1 kB / 0.7049 GB, free: 15.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.053, allocations: 47.98 kB / 0.705 GB, free: 15.14 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003985/1.057, allocations: 1.313 MB / 0.7063 GB, free: 13.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 3e-07/1.057, allocations: 0 / 0.7063 GB, free: 13.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005162/1.062, allocations: 0.625 MB / 0.7069 GB, free: 13.18 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,voltageController.PI_d.x,voltageController.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 (111): * Single equations (assignments): 108 * 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.001513/1.064, allocations: 414.2 kB / 0.7073 GB, free: 12.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006006/1.07, allocations: 2.658 MB / 0.7099 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.07, allocations: 0 / 0.7099 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003453/1.074, allocations: 1.682 MB / 0.7115 GB, free: 8.355 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/1.078, allocations: 495.6 kB / 0.712 GB, free: 7.867 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/1.095, allocations: 6.857 MB / 0.7187 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.309/1.404, allocations: 2.259 MB / 0.7209 GB, free: 124.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003296/1.407, allocations: 462.1 kB / 0.7213 GB, free: 124.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007322/1.408, allocations: 152.9 kB / 0.7215 GB, free: 124.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.613e-06/1.408, allocations: 4.469 kB / 0.7215 GB, free: 124.1 MB / 490.7 MB Notification: Performance of Templates: time 0.08537/1.494, allocations: 34.21 MB / 0.7549 GB, free: 122.6 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)