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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001605, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 188.3 kB / 16.13 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.876/1.876, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4936/0.4936, allocations: 39.93 MB / 309.3 MB, free: 9.617 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002442/0.002443, allocations: 59.92 kB / 376.9 MB, free: 13.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2063, allocations: 56.88 MB / 433.8 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01808/0.2245, allocations: 11.52 MB / 445.3 MB, free: 8.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.2383, allocations: 3.919 MB / 449.2 MB, free: 4.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005586/0.244, allocations: 59.69 kB / 449.3 MB, free: 4.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003299/0.2473, allocations: 0.7574 MB / 450.1 MB, free: 4.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004127/0.2515, allocations: 0.851 MB / 450.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.2529, allocations: 467.6 kB / 451.4 MB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3477/0.6006, allocations: 3.648 MB / 455 MB, free: 37.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004053/0.6047, allocations: 2.52 MB / 457.5 MB, free: 36.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.608, allocations: 1.35 MB / 458.9 MB, free: 36.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003825/0.6119, allocations: 1.917 MB / 460.8 MB, free: 36.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009582/0.6129, allocations: 261.8 kB / 461.1 MB, free: 36.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001684/0.6146, allocations: 382.3 kB / 461.4 MB, free: 36.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.6158, allocations: 1.057 MB / 462.5 MB, free: 36.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002439/0.6182, allocations: 1.712 MB / 464.2 MB, free: 35.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005561/0.6238, allocations: 5.359 MB / 469.6 MB, free: 34.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.6239, allocations: 0 / 469.6 MB, free: 34.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.6239, allocations: 0 / 469.6 MB, free: 34.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001719/0.624, allocations: 3.062 kB / 469.6 MB, free: 34.54 MB / 382.1 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.01238/0.6364, allocations: 3.831 MB / 473.4 MB, free: 32.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.6365, allocations: 9.156 kB / 473.4 MB, free: 32.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001652/0.6382, allocations: 391.9 kB / 473.8 MB, free: 32.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004869/0.6431, allocations: 1.933 MB / 475.7 MB, free: 31.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/0.6434, allocations: 226.9 kB / 475.9 MB, free: 31.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004947/0.6439, allocations: 285.2 kB / 476.2 MB, free: 31.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007358/0.6512, allocations: 3.734 MB / 479.9 MB, free: 29.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-05/0.6513, allocations: 9.562 kB / 480 MB, free: 29.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002406/0.6516, allocations: 112.1 kB / 480.1 MB, free: 29.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001882/0.6518, allocations: 142.7 kB / 480.2 MB, free: 29.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006609/0.6584, allocations: 3.162 MB / 483.4 MB, free: 28.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03189/0.6903, allocations: 11.57 MB / 494.9 MB, free: 22.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005018/0.6954, allocations: 2.174 MB / 497.1 MB, free: 21.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002823/0.6983, allocations: 1.244 MB / 498.4 MB, free: 20.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004182/0.6987, allocations: 211.5 kB / 498.6 MB, free: 20.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/0.6988, allocations: 48.66 kB / 498.6 MB, free: 20.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.428e-06/0.6988, allocations: 1.406 kB / 498.6 MB, free: 20.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.02368/0.7225, allocations: 8.201 MB / 0.4949 GB, free: 17.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.7227, allocations: 71.5 kB / 0.495 GB, free: 17.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005495/0.7282, allocations: 1.938 MB / 0.4969 GB, free: 16.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005105/0.7287, allocations: 51.48 kB / 0.4969 GB, free: 16.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.7298, allocations: 1.358 MB / 0.4983 GB, free: 15.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006728/0.7305, allocations: 0.5216 MB / 0.4988 GB, free: 14.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006802/0.7312, allocations: 314.9 kB / 0.4991 GB, free: 14.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.7313, allocations: 308.3 kB / 0.4994 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001806/0.7331, allocations: 0.882 MB / 0.5002 GB, free: 14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.7352, allocations: 1.345 MB / 0.5015 GB, free: 12.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003705/0.7389, allocations: 2.387 MB / 0.5039 GB, free: 11.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.7389, allocations: 7.656 kB / 0.5039 GB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005396/0.7443, allocations: 2.923 MB / 0.5067 GB, free: 9.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.7444, allocations: 16.62 kB / 0.5068 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/0.7444, allocations: 15.69 kB / 0.5068 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.7455, allocations: 387.7 kB / 0.5071 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001579/0.7471, allocations: 449.2 kB / 0.5076 GB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004649/0.7517, allocations: 6.204 MB / 0.5136 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002493/0.7543, allocations: 123.7 kB / 0.5137 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.7545, allocations: 75.97 kB / 0.5138 GB, free: 3.203 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002679/0.7572, allocations: 0.9125 MB / 0.5147 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008548/0.758, allocations: 205.5 kB / 0.5149 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005124/0.7632, allocations: 2.901 MB / 0.5177 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.7632, allocations: 16 kB / 0.5178 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.7632, allocations: 8 kB / 0.5178 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.7632, allocations: 7.969 kB / 0.5178 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/0.7751, allocations: 6.17 MB / 0.5238 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.7752, allocations: 4 kB / 0.5238 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.7762, allocations: 241.2 kB / 0.524 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002178/0.7784, allocations: 0.7995 MB / 0.5248 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001567/0.7786, allocations: 47.98 kB / 0.5249 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.7909, allocations: 9.828 MB / 0.5345 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.791, allocations: 8 kB / 0.5345 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007715/0.7987, allocations: 4.183 MB / 0.5385 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/0.801, allocations: 482.4 kB / 0.539 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008762/0.8019, allocations: 39.98 kB / 0.539 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/0.8035, allocations: 100.1 kB / 0.5391 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000406/0.804, allocations: 124.1 kB / 0.5393 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.8041, allocations: 51.92 kB / 0.5393 GB, free: 8.668 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002544/0.8066, allocations: 1.333 MB / 0.5406 GB, free: 7.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8066, allocations: 8 kB / 0.5406 GB, free: 7.305 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003654/0.8103, allocations: 0.5703 MB / 0.5412 GB, free: 6.734 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000569/0.8109, allocations: 197.4 kB / 0.5414 GB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004558/0.8155, allocations: 2.628 MB / 0.5439 GB, free: 3.914 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/0.8155, allocations: 1 kB / 0.5439 GB, free: 3.914 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.818, allocations: 1.643 MB / 0.5455 GB, free: 2.262 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/0.8211, allocations: 0.4955 MB / 0.546 GB, free: 1.773 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.8338, allocations: 7.073 MB / 0.5529 GB, free: 10.64 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002522/0.8364, allocations: 2.213 MB / 0.5551 GB, free: 8.398 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002377/0.8388, allocations: 469.7 kB / 0.5555 GB, free: 7.938 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005279/0.8393, allocations: 155.4 kB / 0.5557 GB, free: 7.789 MB / 430.1 MB Notification: Performance of SimCode: time 1.613e-06/0.8394, allocations: 0 / 0.5557 GB, free: 7.789 MB / 430.1 MB Notification: Performance of Templates: time 0.06632/0.9057, allocations: 31.59 MB / 0.5865 GB, free: 8.328 MB / 462.1 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)